Wrap the words of a heading or a link. Pass reveal to show a hidden text inside the light.
launch-hero.tsx
TextOutlineSpotlight
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The text. It stays real text: selectable. |
| reveal | ReactNode | — | What the light shows instead of the text in color: a hidden message, a translation, a spoiler. Default: the text in the gradient text colors. |
| radius | number | — | The radius of the light in px. Default 120. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves the focus to the text, or to the link or button around it. The light sweeps across the text, then covers all of it. |
|---|---|
| EnterorSpace | With reveal and no control around it: holds the light over all of the text, or lets it go. |













