ClickToCopyText
Overview
Displays a text value alongside a button that copies it to the clipboard and shows a toast notification on success.
Theme entry: ClickToCopyText
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | Object | null | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. | |
| text | string | yes | The text value to display and copy to the clipboard. | |
| toast | string | null | Toast message shown after copying. Defaults to "<text> copied". |
Slots
text
Scoped slot.
Bindings
| Name | Description |
|---|---|
| text |
copy-button
Scoped slot.
Source
client/lib/display/click-to-copy-text/ClickToCopyText.vue