Dot Frame
A box whose border is rows of dots; on hover or focus a wave of solid dots runs around it.
pixikit.com/docs/components/dot-frame
Customize
Rows2
Dot size4px
Gap4px
Radius20px
Tone
Trigger
Speed0.5laps/s
Tail10dots
Active
Props
12| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | What sits inside the frame, on the inner panel. |
rows | number | 2 | How many rings of dots run around the panel. |
dotSize | number | 4 | A dot's size in pixels. |
gap | number | 4 | The space between dots, in pixels. |
radius | number | 20 | The radius of the outer corner, in pixels. |
tone | "tint" | "solid" | "plain" | "tint" | The look of the band: `tint` is primary at low opacity, `solid` is primary with light dots, `plain` has no band colour. |
trigger | "hover" | "focus" | "both" | "always" | "none" | "both" | What starts the wave around the frame. |
speed | number | 0.5 | How many laps the wave runs per second. |
tail | number | 10 | How many dots the lit tail of the wave covers. |
active | boolean | None | Controls the wave from outside; overrides the trigger. |
className | string | None | |
panelClassName | string | None | Classes for the inner panel. |