Atelier UI

Search components…

Search components…

Border Beam

Gradient beam of light travelling around a card's border.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

BorderBeamProps

Also accepts all props of React.ComponentProps<"div">

PropTypeDefaultDescription
colorFromstring"#f97316"—
colorTostring"#a855f7"—
durationnumber6Seconds per lap around the border
borderWidthnumber1.5Border thickness in px
beamLengthnumber90Length of the beam, in degrees of the lap

Install

$ npx shadcn@latest add https://chromotion.dev/r/border-beam.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this