BorderBeam
Decorative component that renders a moving beam along a container border.
When to use
- Use when a container needs stronger visual emphasis without introducing business state semantics.
- Suitable for login panels, recommendation cards, AI modules, and key CTA blocks.
- As a decorative effect, it should not replace focus rings, validation borders, or status feedback.
Examples
API
BorderBeam are exported from @ceebee/ui/client.
BorderBeam
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
children | Decorated content | ReactNode | - | 6.4.0 |
color | Beam color configuration. Supports a single color string or gradient stops. percent uses the 0 ~ 100 input range and BorderBeam reserves tail space for the transparent fade | string | { color: string; percent: number }[] | - | 6.4.0 |
count | Number of beams | number | 1 | 6.6.0 |
duration | Time in seconds for the beam to complete one loop | number | 6 | 6.5.0 |
lineWidth | Width of the beam line. Numbers are treated as pixels | number | string | 1px | 6.5.0 |
outset | Outset distance of the beam layer from the container edge. Set to 0 for clipped containers | number | string | - | 6.4.0 |
size | Size of the visible beam segment. Numbers are treated as pixels | number | string | 100 | 6.5.0 |