CopyButton is a React component used to copy text content to the clipboard. It provides a button with a copy icon that, when clicked, copies the specified content to the user's clipboard. It also displays a tooltip indicating whether the copy action was successful or not.
CopyButton
import { CopyButton } from '@lobehub/ui';
Default
APIs
Name | Description | Type | Default |
---|---|---|---|
content | The text content to be copied | string | (required) |