BeamBorder
A border with a beam of light travelling around it.
Animatedimport { BeamBorder } from 'umbra-ui/motion'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
borderWidth | 1 | 2 | 1 | Border thickness in px. |
paused | boolean | false | Freezes the beam where it is. |
radius | "sm" | "md" | "lg" | "full" | lg | Corner radius token. |
reducedMotion | "system" | "always" | "never" | "system" | Reduced-motion override. Under reduced motion the beam is a static gradient highlight. |
speed | number | 1 | Speed 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.
pausedfreezes 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