Umbra UI

BeamBorder

A border with a beam of light travelling around it.

Animatedimport { BeamBorder } from 'umbra-ui/motion'

Props

PropTypeDefaultDescription
borderWidth 1 | 21Border thickness in px.
paused booleanfalseFreezes the beam where it is.
radius "sm" | "md" | "lg" | "full"lgCorner radius token.
reducedMotion "system" | "always" | "never""system"Reduced-motion override. Under reduced motion the beam is a static gradient highlight.
speed number1Speed multiplier; 1 is one lap per `duration-loop` token.

Usage notes

Wraps any content. speed multiplies the token loop duration.

Accessibility

  • The beam is decorative.
  • paused freezes it; under reduced motion it never moves.

Import

import { BeamBorder } from 'umbra-ui/motion';
import 'umbra-ui/styles.css'; // once, at the root of your app