UI Library

Copyable

Copy me
Prop Type Default Value Notes
ariaLabelstring?locale
Accessible name for the copy button.
childrenSnippet—
Renders instead of text when passed; committing applies it, and the dialog edits its text.
containerClassstring?''
Extra classes for the wrapper.
copyPosition'inline' | 'top-right''inline'
Copy button placement.
copyTextstring?text
Value placed on the clipboard; defaults to text.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Copy button scale; numbers are icon-scale pixels interpolated between the steps.
textstring?—
Text to render (or wrap children instead).
textClassstring?'text-slate-400'
Classes for the rendered text.
tooltipstring?locale
Tooltip for the copy button.