Toggle Sidebar B
AppearanceLight & dark mode 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.

Replay preview

Next to an input

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

Replay preview

API Reference

ButtonCopy

PropTypeDefaultDescription
textstringString written to the clipboard on click.