Skip to content

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

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
textstringyesThe text value to display and copy to the clipboard.
toaststringnullToast message shown after copying. Defaults to "<text> copied".

Slots

text

Scoped slot.

Bindings

NameDescription
text

copy-button

Scoped slot.

Source

client/lib/display/click-to-copy-text/ClickToCopyText.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2