Updated
Dot Matrix Loader
ProCustomize
All states
Grid8
Size64px
Gap0.20
circle
Trail0.50
Speed1.00×
Flow1.0
Color
Angle45°
Success colour
Error colour
Installation
ProDot Matrix Loader is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/dot-matrix-loader
Loading your installation…
Usage
import { DotMatrixLoader } from "@/components/uibrik/dot-matrix-loader/dot-matrix-loader";<DotMatrixLoader grid={8} size={64} gap={0.2} shape="circle" trail={0.5} speed={1} flow={1} color="#2f6bff" angle={45} successColor="#22c55e" errorColor="#f43f5e" // label="…" // restColor="…"/>Where to use Dot Matrix Loader
AI assistants
Thinking, reasoning, planning and searching each move differently, so people can tell what the model is doing at a glance.
Pairs with Streaming Chat
Long-running tasks
One indicator carries a job from waiting through progress to done or failed, without swapping components.
Pairs with Progress
Uploads and syncs
Progress grows as a spiral from the centre, with the next dot breathing at its edge.
Pairs with Sync Button
Props
DotMatrixLoader- state
- Type "loading" | "thinking" | "reasoning" | "planning" | "searching" | "generating" | "analyzing" | "syncing" | "uploading" | "downloading" | "listening" | "waiting" | "connecting" | "writing" | "processing" | "indexing" | "streaming" | "focusing" | "routing" | "monitoring" | "progress" | "success" | "error" | "idle"
- "thinking"
- What the work is doing. Activities loop; progress, success, error and idle hold still.
- value
- Type number
- 60
- Progress while state is progress.
- showLabel
- Type boolean
- true
- Show the state's label beside the grid.
- grid
- Type number
- 8
- Dots per side.
- size
- Type number
- 64
- Width and height of the grid.
- gap
- Type number
- 0.2
- Space between dots, as a share of one cell.
- shape
- Type "circle" | "square"
- "circle"
- Dot shape.
- trail
- Type number
- 0.5
- How long a dot stays lit after the motion passes.
- speed
- Type number
- 1
- Tempo multiplier.
- flow
- Type number
- 1
- How fast the gradient drifts through the grid. 0 holds it still.
- color
- Type string
- "#2f6bff"
- One colour; the gradient runs through its shades.
- colors
- Type string[]
- ["#ff4f00","#ffb000","#ff2e63"]
- Gradient stops. They loop, so the drift never hits an end. Overrides color.
- angle
- Type number
- 45
- Direction of the gradient.
- successColor
- Type string
- "#22c55e"
- Colour of the success burst.
- errorColor
- Type string
- "#f43f5e"
- Colour of the error flash.
- label
- Type string
- –
- Read out to screen readers and shown with showLabel. Defaults to a label for the state, with the percentage in progress.
- restColor
- Type string
- –
- Solid colour of resting dots, any CSS colour. Defaults to a neutral grey that follows light and dark mode.
- className
- Type string
- –
- Classes for the wrapper.