Anatomy
import { ColorDisc } from "chroma-panel";
<ColorDisc />;Only inside a panel
This is one of the parts the built-in modes are made of. It reads the colour
through usePanel(), so it only works inside a ChromaPanel — typically in a
custom mode. For a picker outside the panel, use the
store and hooks.
API reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 200 | Diameter in pixels. --cp-disc-size sets this for the built-in wheel mode. |
| className | string | — | Class on the disc. |