Skip to content

Color wheel

Adjusts the hue of a color on a circular track.

color-wheel-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Controlled value

Children render in the center of the wheel. Also install Color swatch.

Selected: #29A366
color-wheel-controlled-demo.tsx

Size

innerRadius defaults to 24 pixels less than outerRadius.

color-wheel-size-demo.tsx

Disabled

color-wheel-disabled-demo.tsx

API reference

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.