Import Dot Matrix and compose its parts.
dot-matrix.tsx
DotMatrix
<output>| Prop | Type | Default | Description |
|---|---|---|---|
| rounded | "default""full" | — | |
| size | "default""lg""sm""xl""xs" | — | |
| pattern | "border""checker""columns""converge""corners""fill""heartbeat""pulse""radar""rain""ripple""scan""snake""spiral""twinkle""wave" | "twinkle" | How the cells light up. Default twinkle. |
| grid | 345 | 3 | Cells on each side: 3 (default), 4, or 5. |
| state | "done""error""paused""running" | "running" | running (default) loops; paused holds the frame at 40%; done and error turn the cells into a check or an x, in the same color (add text-success or text-destructive for color). |
| speed | number | 1 | Loop speed: 2 is twice as fast. Default 1 (one loop in 1.6s, the flow kind). |
| colors | readonly string[] | — | The colors of the cells, as gradient stops: any CSS color, a token too (var(--color-info)). One color paints every cell. Default: the text color. |
| gradient | "diagonal""horizontal""radial""vertical" | "diagonal" | How the colors lie over the cells: diagonal (default), horizontal, vertical, radial. |
| ...props | <output> attributes | — | Every other attribute goes to the <output>, with a ref. |





