UI Library

Copyable

Default

Copy me

Props

PropTypeDefaultNotes
textstringText to render (or wrap children instead).
copyTextstringtextCopied text; defaults to the rendered text.
classNamestring'text-slate-400'Classes for the rendered text.
containerClassstring''Extra classes for the wrapper.
copyAriaLabelstringlocaleAccessible name for the copy button.
copyTooltipstringlocaleTooltip for the copy button.
alwaysVisiblebooleanfalseKeeps the copy button visible (top-right mode implies it).
copyPosition'inline' | 'top-right''inline'Copy button placement.
childrenSnippetRenders instead of text when passed.