All components

Clipboard

Copy a value with one click: a read-only field with a joined copy button, or a standalone icon button.

Variants

outline
subtle

Sizes

xs
sm
md
lg

Icon button

A Trigger on its own is a square icon button. Drop it next to a code snippet; its accessible label switches to “Copied to clipboard” while the copied state lasts.

npx stylexblocks add clipboard

Install

Source

components/ui/ui-sdk/clipboard.tsx