Wrap one child. Set active while the work runs, then set outcome.
summary-card.tsx
BorderBeam
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | |
| type | "beam""flow""level""line""pulse""rim" | "beam" | The look of the light. beam (default): a band laps the edge. line: light on one side that breathes. pulse: the whole edge breathes. flow: the whole edge lit, colors drift apart. level: the whole edge follows level. rim: the full edge, a breath, and a pointer spot. |
| colors | readonly string[] | DEFAULT_COLORS | One to seven CSS colors of the light, in order along the light. Default: the primary token. AURORA_COLORS (the aurora colors, also for flow) lives in #/lib/aurora-colors. |
| active | boolean | false | The work runs: the light comes in, and goes out when it turns false. Default false. |
| outcome | "done""error" | — | The result of the work. A change to done draws a success rim that closes its loop; a change to error shows a destructive rim. In 150ms, a hold of 600ms, out in 600ms. A value set at mount shows no rim. Set it back to undefined when the next run starts. |
| level | MotionValue<number> | — | The audio level, 0 to 1, of the level type, or of a flow that swells with a voice (a Motion value, so React does not render per frame). The edge smooths it (smoothLevel), so it swells and never flickers. Without it the edge is fully lit. |
| duration | number | — | Seconds of one cycle. Default per type: beam 4.5, line 2.4, pulse 2.4, flow 7, rim 4. |
| length | number | 0.25 | The share of the edge that the beam lights, 0.04 to 0.5. Default 0.25. |
| count | 12 | 1 | How many beams lap the edge, on one clock. Default 1. |
| palette | "carried""painted" | "carried" | carried (default): every color rides inside the beam. painted: the colors stay in place around the edge, and the beam shows the color under it, so it changes hue as it travels. |
| side | "bottom""top" | "bottom" | The side that the line lights. Default bottom. |
| origin | "bottom""pointer""side" | "bottom" | Where the flow light opens: bottom (default), side (the inline end), or pointer. |
| placement | "inside""outside" | "inside" | Where the flow light falls. inside (default): it spills inward, for panels and page edges. outside: a halo, and the surface stays clean, for cards and dialogs. |
| strength | number | 1 | The strength of the light layers, 0 to 1 (never the outcome rim). Default 1. |
| bloom | boolean | true | The soft bloom around the child. Default true. |
| inner | boolean | true | The light that falls on the surface inside the edge (beam, line, inside flow). Default true. |
| radius | string | number | — | The corner radius of the light, in px or any CSS length. Default: the radius of the child, read when its size changes. |
| on | — | Called when the light comes to rest: running after it came in, off after it went out. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |







