Adjusts the hue of a color on a circular track.
color-wheel-demo.tsx
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Children render in the center of the wheel. Also install Color swatch.
color-wheel-controlled-demo.tsx
innerRadius defaults to 24 pixels less than outerRadius.
color-wheel-size-demo.tsx
color-wheel-disabled-demo.tsx
vip/ui adds or changes the props below. For all other props, see React Aria ColorWheel (opens in a new tab).
- outerRadius: number = 96
- Outer radius of the track, in pixels.
- innerRadius: number = outerRadius - 24
- Inner radius of the track, in pixels.
- children: ReactNode
- Content in the center of the wheel.