useLinkify — Links in a Comment Thread
- from @astryx
- by Astryx
Plain-text comments where useLinkify turns the URL and the email address into Links, and a custom pattern turns issue references like #123 into tracker links — the patterns option in action. The comment without matches stays plain text.
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 @astryx/example-use-linkify-links-in-a-comment-threadRegistry dependencies0
The CLI adds no other registry items with this one.
