CopyButton

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.

import { CopyButton } from '@lobehub/ui';

Default

APIs

NameDescriptionTypeDefault
contentThe text content to be copiedstring(required)