Toggle Sidebar B
header.lightDarkMode D

Button Copy

Icon button that copies text to the clipboard. Cross-fades to a check icon when copied with a tippy tooltip.

Default

Pass the string to copy via the text prop.

Next to an input

Common pattern: read-only input plus copy button for shareable URLs.

API Reference

Props, events, and slots for each sub-component.

ButtonCopy

Props

PropTypeDefaultDescription
textstringString written to the clipboard on click.