DUClipboard
UtilityCopy-to-clipboard control for tokens and snippets.
import { DUClipboard } from 'deri-ui';Live preview
npm install deri-uitypescript
<DUClipboard value="npm install deri-ui" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | Text to copy |
| label | string | 'Copy' | Button label |
| onCopied | () => void | — | Callback |
Usage
import { DUClipboard } from 'deri-ui';
<DUClipboard value="npm install deri-ui" />Customize with className, radius, and Tailwind utilities. Theme tokens come from deri-ui/tailwind.preset.
Related
© 2026 Deri Ui. Developed by Deribew Shimelis. Copy and use the code freely in your projects.
