Border Beam
A wrapper whose border has a light running around it, for a button, a badge or a card.
pixikit.com/docs/effects/border-beam
Customize
Colors3 of 10
Duration3.0s
Border width1.5px
Radius12px
Beam size20%
Paused
Width480px
Height220px
Props
12| Name | Type | Default | Description |
|---|---|---|---|
colors | string[] | ["#a78bfa", "#7c3aed", "#2563eb"] | The beam's colours, from its tail to its head. |
duration | number | 3 | Seconds the beam takes for one lap. |
borderWidth | number | 1.5 | The border's width in pixels. |
radius | number | 12 | The corner radius in pixels. |
beamSize | number | 20 | How long the beam is, in % of one lap. |
paused | boolean | false | Stop the beam where it is. |
width | number | None | The widest it grows, in pixels; it never overflows a narrower container. Left out, it fits its content. |
height | number | None | Its minimum height in pixels; taller content grows it. Left out, it fits its content. |
title | string | "Ship faster with less code" | The heading of the built-in example, shown when there are no children. |
text | string | "A light runs around the border to draw the eye." | The line under the heading of the built-in example. |
className | string | None | |
children | ReactNode | None |