Skip to content

Dot Matrix Text

Amber pinpoints form a crisp matrix display with a soft travelling pulse.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import DotMatrixText from "./DotMatrixText";
export default function Example() {
return (
<DotMatrixText
text={"STAY\nCURIOUS."}
color={"#e9b777"}
offColor={"#ffffff0c"}
background={"#1b1916"}
cellSize={7}
radius={0.33}
speed={3}
paused={false}
/>
);
}

Using Dot Matrix Text

Use short labels or headlines and insert a newline for multiple display rows. The SVG scales down to its container while keeping a single accessible text description.

The built-in alphabet supports Latin letters, numbers and common punctuation. Pass glyphs to add custom characters; unsupported characters use a question mark.

Props

NameTypeRequiredDefaultDescription
textstringNo""Text, with newline support. Latin letters render in uppercase.
colorstringNo"#e9b777"Lit dot colour.
offColorstringNo"#ffffff0c"Unlit dot colour.
backgroundstringNo"#1b1916"Display background.
cellSizenumberNo6Display scale in pixels per cell.
radiusnumberNo0.33Dot radius as a fraction of each cell.
speednumberNo3Pulse cycle in seconds.
pausedbooleanNofalsePause the travelling pulse.
glyphsRecord<string, number[]>NoundefinedOptional glyph overrides. Each character uses five columns with row flags from 1 through 64.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Reflection Text

Text Effects

Crisp typography meets a soft, fading reflection beneath the baseline.

Morphing Words

Text Effects

Words dissolve through a soft blur while the headline keeps its width.

Scan Text

Text Effects

A warm scanning light brings a dim headline into focus.

Embossed Text

Text Effects

Sculpted metallic lettering catches the light as your pointer moves.