Wrap the text of a heading. Pick the lens that fits the product.
The sample also uses Badge and Button. One command adds them with this item:
camera-hero.tsx
TextPinchWarp
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — | The text. |
| strength | number | — | How strong the lens is, from 0 to 1. Default 1. |
| radius | number | — | The lens radius in px. Default: 1.1 × the font size. |
| ripple | boolean | — | A press sends a ring wave through the text. Default true. |
| plain | boolean | — | Show the plain text, with no WebGL. |
| on | — | Called when three.js does not load or the WebGL setup fails. The plain text stays. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Keyboard focus on the link or button around the text runs the lens once along the line. |
|---|













