Wrap the title of a playful page. The rope pins to the ends of each line.
maintenance-page.tsx
TextRope
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextRopeLetters, TextRopeLine, and TextRopeControl. |
| on | — | Called when Rapier does not load (the plain text stays). | |
| swing | "none""view" | "view" | view (default): the rope swings once the first time it shows. none: it hangs still. |
| on | — | Called when the rope comes to rest and the letters are the page text again. | |
| labels | Partial<{ swing: string; }> | — | The words of the control (ROPE_TEXT_LABELS). Keep the object stable. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextRopeLetters
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| locale | string | — | The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US". |
| children | string | — | The text. Up to 40 letters each hang on their own; a longer text hangs by words. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextRopeLine
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
TextRopeControl
<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 in the swing room above the text. It shows only while it has keyboard focus, unless visible is set. |
|---|---|
| EnterorSpace | Swings the rope. |
| Left ArroworRight Arrow | Pushes the rope to the left or to the right. |
Built with
Installs with Text Rope
- Components
- Button







