Skip to content
FreeCards

Border Beam

A beam of light with a tail, a bright head and a halo that travels around the outline of any content at constant speed.

Plan
Free · MIT
Dependencies
React only
Props
13 (12 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

A beam traces the border

Over any content, with a tail and a glow.

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode"A beam traces the border"Card content. Plain text is shown as the title.
captionstring"Over any content, with a tail and a glow."Supporting text under the title (only when children is plain text).
colorstring"#8fb4ff"Color of the beam's head.
colorTostring"#b46cff"Color of the beam's tail.
durationnumber6Seconds the beam takes to go around once.
sizenumber220Length of the tail, in px.
borderWidthnumber1.6Thickness of the lit border, in px.
radiusnumber22Corner radius, in px.
beamsnumber1How many beams travel around the border at once.
glownumber1Halo intensity, from 0 to 1.5.
widthnumber360Maximum width of the card, in px.
minHeightnumber0Minimum height of the card, in px.
backgroundstring"#0f1116"Card background.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { BorderBeam } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A deck of cards you shuffle by dragging the top one: inertia, rotation and a spring back to the bottom. Also works with click and keyboard.

    Cards

  • Arcs of electricity that snake around the border, with local discharges, sparks and a flickering glow.

    Cards

  • A cardboard folder that opens on hover and lets its documents peek out with a soft bounce.

    Cards