Icon-only vs labelled
Omit children for a circular icon button; pass a label to widen itSizes
Inherits the Button size scaleCopyable affordance
Hover a row: the copy button fades in beside the value (ep's table-cell pattern)Nightly catalog syncjob_8f3c21a0
Price reconciliationjob_1b77de44
Image backfilljob_af09c5e2
Beside a code block
A labelled copy for a snippet or config valueimport { CopyButton } from "@versable-git/ui";
<CopyButton value={record.id} />Last line and tooltip
Beside wrapped text the button sits on the last line. tipValue names what will be copied: hover it to read Copy with the value in quotes.A long job description that wraps across several lines in a narrow column, so the copy control has to choose a line to sit on.
Styling slots
Every className the component exposes, and what it reaches- className
- the button
- _className
- the tooltip wrapper
- iconClassName
- the copy/check glyph