Skip to content
PixiKit

Marching Border

A wrapper with a moving dashed border and corner marks, for a drop zone or a placeholder.

pixikit.com/docs/effects/marching-border

Customize

Dash6px
Gap6px
Speed20px/s
Color
Radius12px
Stroke width1.5px
Corners
Corner size12px
Corner color
Paused
Width560px
Height300px

Props

15
NameTypeDefaultDescription
dashnumber6A dash's length in pixels.
gapnumber6The space between dashes in pixels.
speednumber20How fast the dashes march, in pixels per second.
colorstring"var(--muted-foreground)"The dashes' colour.
radiusnumber12The corner radius in pixels.
strokeWidthnumber1.5The dashes' thickness in pixels.
cornersbooleantrueCorner marks, drawn in when it first shows.
cornerSizenumber12How long each arm of a corner mark is, in pixels.
cornerColorstring"var(--foreground)"The corner marks' colour.
pausedbooleanfalseStop the dashes where they are.
widthnumberNoneThe widest it grows, in pixels; it never overflows a narrower container. Left out, it sizes to its content.
heightnumberNoneIts minimum height in pixels. Left out, it is as tall as its content.
labelstring"Drop a file here"The text shown when there are no children.
classNamestringNone
childrenReactNodeNone

Related