Button Copy
Icon button that copies text to the clipboard. Cross-fades to a check icon when copied with a tippy tooltip.
Icon button that copies text to the clipboard. Cross-fades to a check icon when copied with a tippy tooltip.
Pass the string to copy via the text prop.
Common pattern: read-only input plus copy button for shareable URLs.
Props, events, and slots for each sub-component.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | String written to the clipboard on click. |