Dev Design Library

Copy Button

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.

Copy Button preview
Library
Lobe UI
Framework
React
Type
component
License
MIT
Install
pnpm add @lobehub/ui
Files
  • src/CopyButton/CopyButton.tsx
  • src/CopyButton/index.ts
  • src/CopyButton/stable.ts
  • src/CopyButton/type.ts
  • src/ActionIcon/index.ts
  • src/ActionIcon/ActionIcon.tsx
  • src/ActionIcon/style.ts
  • src/ActionIcon/type.ts
Source
https://github.com/lobehub/lobe-ui

Categories

More from Lobe UI