Las letras se dibujan con trazo y después se rellenan.
npx shadcn@latest add https://reactbits.dev/r/StrokeText-TS-TW
Úsalas en titulares y mensajes clave. Una por pantalla: si todo se mueve, nada destaca.
| Prop | Tipo | Por defecto |
|---|---|---|
| text | string | "Draw Attention" |
| strokeColor | string | "#A78BFA" |
| fillColor | string | "#F8FAFC" |
| strokeWidth | number | 1.4 |
| drawDuration | number | 1.6 |
| fillDelay | number | 0.2 |
| stagger | number | 0.05 |
| ease | string | "power2.out" |
| trigger | "mount" | "hover" | "scroll" | "loop" | "mount" |
| fillMode | "fade" | "wipe" | "none" | "wipe" |
| fontSize | number | string | 128 |
| fontWeight | number | string | 800 |
| letterSpacing | number | string | -4 |
| reverse | boolean | false |
| className | string | "" |
| style | CSSProperties | {} |