Utility
Terminal
█
color-picker-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/color-picker
Usage
import { ColorPicker } from "@/components/ui/color-picker";<ColorPicker label="Pick a color" onChange={(color) => {}} />API Reference
ColorPicker
| Prop | Type | Default |
|---|---|---|
value | string | - |
onChange | (color: string) => void | - |
onSubmit | (color: string) => void | - |
label | string | - |
palette | string[] | DEFAULT_PALETTE |
autoFocus | boolean | false |
id | string | - |