# copy button, 21st-cubby-ui--cubby-ui component by cubby-ui

A button that copies given text to the clipboard and shows an animated check/error icon confirmation, with optional toast feedback.

> Page: https://ui.eneawork.it/comp/21st-cubby-ui--cubby-ui/copy-button
> Markdown: https://ui.eneawork.it/comp/21st-cubby-ui--cubby-ui/copy-button.md

- Library: [21st-cubby-ui--cubby-ui](/components/lib/21st-cubby-ui--cubby-ui)
- HTML page: https://ui.eneawork.it/comp/21st-cubby-ui--cubby-ui/copy-button

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-cubby-ui--cubby-ui/copy-button.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
