Skip to content
PixiKit

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
NameTypeDefaultDescription
colorsstring[]["#a78bfa", "#7c3aed", "#2563eb"]The beam's colours, from its tail to its head.
durationnumber3Seconds the beam takes for one lap.
borderWidthnumber1.5The border's width in pixels.
radiusnumber12The corner radius in pixels.
beamSizenumber20How long the beam is, in % of one lap.
pausedbooleanfalseStop the beam where it is.
widthnumberNoneThe widest it grows, in pixels; it never overflows a narrower container. Left out, it fits its content.
heightnumberNoneIts minimum height in pixels; taller content grows it. Left out, it fits its content.
titlestring"Ship faster with less code"The heading of the built-in example, shown when there are no children.
textstring"A light runs around the border to draw the eye."The line under the heading of the built-in example.
classNamestringNone
childrenReactNodeNone

Related