useChatPasteAsToken — Long paste
- from @astryx
- by Astryx
A composer whose pasteAsToken comes from useChatPasteAsToken with a threshold of 40 and a Pasted note label. A paste of 41 to 200 characters becomes that token. A shorter paste stays inline.
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-chat-paste-as-token-long-pasteRegistry dependencies0
The CLI adds no other registry items with this one.
