Split Text
- from @mizzle
- by mizzle <https://mizzle.saddy.me>
Splits a string into words and characters you can style one by one. Words still wrap, spaces stay real, screen readers hear the sentence, and every piece knows its index, word and measured line.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @mizzle/split-textComponent source
No live preview has been built for this component yet.
Registry dependencies1
- @mizzle/use-merged-ref
Packages0
No npm packages are installed with it.
