

Every state


default


hover


focus


copied


failed


disabled


in-card
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "copy-invite" | Id of the button; the hint and status hang off it. |
| text | string | "https://app.kettlebrook.example/join/7Q4M-2XKD" | What goes on the clipboard. |
| label | string | "Copy invite link" | The button's label. |
| icon | IconName | "link" | Lucide icon name before the label. |
| copiedLabel | string | "Copied" | Copied label. |
| failedLabel | string | "Couldn't copy" | Failed label. |
| failedHint | string | "Your browser blocked the clipboard. Copy it here:" | Under the button when copying fails, before the text. |
| copiedStatus | string | "Invite link copied to the clipboard" | Said by screen readers after copying. |
| resetAfter | number | 2000 | Milliseconds before the button returns to its label. |
| state | "copied" | "failed" | null | – | Start copied or failed (previews); it doesn't return by itself then. Null: the label. |
| onCopy | (text: string) => void | – | Called with the text after a successful copy. |
| disabled | boolean | – | Disables it. |
| className | string | – | Extra classes on the outer element. |


