Copy button
v0.23.0Copies 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 aslabels.copy, and wins over it.- copiedLabel
stringSame aslabels.copied, and wins over it.- failedLabel
stringSame aslabels.failed, and wins over it.- labels
Partial<CopyButtonLabels>The words it says, to translate them.- children
ReactNode- variant
"secondary" | "outline" | "ghost" = "ghost"