Skip to content
Design System
GitHub

Copy button

v0.23.0

Copies a value; the icon becomes a check for 1.5 s.

API reference

Generated from the types. Every part also takes className.

CopyButton

valuerequired
string
label
stringSame as labels.copy, and wins over it.
copiedLabel
stringSame as labels.copied, and wins over it.
failedLabel
stringSame as labels.failed, and wins over it.
labels
Partial<CopyButtonLabels>The words it says, to translate them.
children
ReactNode
variant
"secondary" | "outline" | "ghost" = "ghost"