Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneWhat sits inside the frame, on the inner panel.
rowsnumber2How many rings of dots run around the panel.
dotSizenumber4A dot's size in pixels.
gapnumber4The space between dots, in pixels.
radiusnumber20The 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.
speednumber0.5How many laps the wave runs per second.
tailnumber10How many dots the lit tail of the wave covers.
activebooleanNoneControls the wave from outside; overrides the trigger.
classNamestringNone
panelClassNamestringNoneClasses for the inner panel.

More interaction components in Pro

View all

Related