Wrap the line of a release hero. The root padding is the band margin.
release-hero.tsx
TextRibbon
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextRibbonContent, TextRibbonCanvas, and TextRibbonControl. |
| wave | "loop""none""once" | "once" | The wave along the band: once (default) when it first shows and on each press, loop all the time, none never (the pointer still turns it). |
| turn | number | 0.6 | How far the band turns under the pointer, 0 (not at all) to 1 (a half turn). Default 0.6. |
| bloom | number | 0.6 | The glow around the band, 0 (off) to 2. Default 0.6. |
| grain | number | 0.35 | The film grain on the band, 0 (off) to 1. Default 0.35. |
| font | string | — | A font file URL of the text's font, woff, ttf, or otf (not woff2: troika cannot read it): the glyphs are drawn as SDF and stay sharp when the band turns. Default: the page text, drawn as the browser lays it out. |
| paused | boolean | false | Stops the wave where it is; the band eases flat. |
| plain | boolean | false | Show the plain text, with no WebGL. |
| on | — | Called when three.js does not load or the WebGL setup fails. The plain text stays. | |
| labels | Partial<{ wave: string; }> | — | The words of the control (RIBBON_TEXT_LABELS). Keep the object stable. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextRibbonContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextRibbonCanvas
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextRibbonControl
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| class | string | — | |||||
| busy | boolean | — | The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading. | ||||
| spinner | "center""start" | — | center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label. | ||||
| glass | "clear""dark""light" | — | |||||
| rounded | "default""full" | — | |||||
| size | "default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs" | — | |||||
| variant | "dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary" | — | |||||
| visible | boolean | false | The control shows at all times. Default: only on keyboard focus. | ||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
| Tab | Moves focus to the control on the end of the band. It shows only while it has keyboard focus, unless visible is set. |
|---|---|
| EnterorSpace | Sends one wave along the band. |
Built with
Installs with Text Ribbon
- Components
- Button





