Wrap the title of a hero. Pick the variant and the pointer area.
The sample also uses Badge and Button. One command adds them with this item:
launch-hero.tsx
TextWireDepth
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| paused | boolean | — | The pause of the user or the page (controlled). |
| default | boolean | — | The first pause when paused is not given (uncontrolled). Default false. |
| on | — | Called when the pause changes. | |
| pause | boolean | — | Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true. |
| children | string | — | The text. Short: a word or a title line. |
| layers | number | — | How many copies of the text make the depth, from 2 to 24. More is smoother and costs more. Default 16, or 6 with outline: 16 outlines 0.06em apart fill in as one solid side, so the lines of the wire frame only show with fewer copies. |
| depth | number | — | The depth from the face to the last layer, in em of the text. Default 1. |
| max | number | — | The largest turn in degrees. The rest angle and the orbit are parts of it. Default 16. |
| perspective | number | — | The 3D view distance in px. Smaller is stronger. Default 800. |
| pointer | "element""none""page" | — | What the mouse does: element (default) turns the text while the mouse is on it, page turns it toward the mouse anywhere on the page, none keeps it at rest. |
| orbit | boolean | — | A slow idle turn around the rest angle that never ends. Default false: a quiet start, the text rests until the page asks for motion. paused, defaultPaused, onPausedChange, and pauseOnHover are the pause pattern of; they stop only the orbit, and the pointer still turns the text. pauseOnHover defaults to true with pointer element (the mouse leads) and false otherwise. |
| orbit | number | — | Seconds for one orbit. Default 12. |
| intro | boolean | — | The depth grows out of the face when the intro starts. Default false: the text has its full depth from the first paint. An intro starts flat, so the text first looks plain. |
| trigger | "mount""view" | — | When the intro starts: view (default) the first time the text is on screen, mount at once. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | While keyboard focus is on the link or button around the text, the text leans to the side, as the mouse would turn it. |
|---|













