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| Name | Type | Default | Description |
|---|---|---|---|
dash | number | 6 | A dash's length in pixels. |
gap | number | 6 | The space between dashes in pixels. |
speed | number | 20 | How fast the dashes march, in pixels per second. |
color | string | "var(--muted-foreground)" | The dashes' colour. |
radius | number | 12 | The corner radius in pixels. |
strokeWidth | number | 1.5 | The dashes' thickness in pixels. |
corners | boolean | true | Corner marks, drawn in when it first shows. |
cornerSize | number | 12 | How long each arm of a corner mark is, in pixels. |
cornerColor | string | "var(--foreground)" | The corner marks' colour. |
paused | boolean | false | Stop the dashes where they are. |
width | number | None | The widest it grows, in pixels; it never overflows a narrower container. Left out, it sizes to its content. |
height | number | None | Its minimum height in pixels. Left out, it is as tall as its content. |
label | string | "Drop a file here" | The text shown when there are no children. |
className | string | None | |
children | ReactNode | None |