Copy button
Copies, says so, and selects the text when the browser refuses (so Ctrl+C still works).
Preview
Install
npx shadcn@4.23.0 add https://ui.dobrin-dobrev.co.uk/r/copy-button.json
Into an app set up with shadcn init --base radix; the parts it uses come with it.
Files
- registry/default/blocks/copy-button.tsx → components/blocks/copy-button.tsx