CopyButton
Usage
Properties
Timeout
API References
Props API
Props API | Type | Default | Annotation |
---|---|---|---|
children? | (payload: { copied: boolean; copy: () => void }) => React.ReactNode | Children callback, provides current status and copy function as an argument | |
value? | string | Value that will be copied to the clipboard when the button is clicked | |
timeout? | number | 1000 | Copied status timeout in ms |