Skip to content

Border beam

The working beam (border-beam) for a wait over three seconds on the element doing the work.

Turn it on for a wait of more than three seconds, on the element doing the work, and never beside a second effect on that element. It does not follow reduced motion by itself: gate active on useReducedMotion(). Pass theme from the app's theme; auto reads the system setting, not the .dark class.

On a working element

March report

Ready to build

Types

md
sm
line
pulse-inner
pulse-outside

Colours

colorful
mono
ocean
sunset
forest
candy
ice
gold

Installation

npx shadcn@latest add @khaeli/border-beam

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

npm packages
  • border-beam ^1.4.1

Accessible name

  • The beam is decoration: it adds no role and no name, and ignores the pointer. Say what is happening in text, in an element with role="status".

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/border-beam.json