Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/clipboard.json
Usage
import { Clipboard } from "@/components/ui/clipboard";<Clipboard value="npm install termcn" label="Install command" />API Reference
Clipboard
| Prop | Type | Default |
|---|---|---|
value | string | required |
label | string | undefined |
successMessage | string | "Copied!" |
timeout | number | 2000 |