Wrap one key word or a plan name. Keep the rest of the text plain.
The sample also uses Badge and Button. One command adds them with this item:
pro-plan-card.tsx
TextSparkles
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The word or phrase to light up. |
| 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. |
| count | number | SPARKLES_COUNT.default | How many sparkles. Default 6, at most 12. |
| color | string | — | One color for every star (a data color, such as a brand color). Default: the two item colors, every other star. |
| seed | number | — | The seed of the spots, sizes, and pace. Default: from the text, so each text has its own. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| Tab | Keyboard focus on the link or button around the text holds the stars while pauseOnHover is true. |
|---|



