ColorSelector

ColorSelector is a component used by the user to select a color.

Usage

import { ColorPicker } from "@yamada-ui/react"
<ColorSelector.Root>
  <ColorSelector.SaturationSlider />
  <ColorSelector.HueSlider />
  <ColorSelector.AlphaSlider />
  <ColorSelector.ColorSwatchGroupLabel />
  <ColorSelector.ColorSwatchGroup>
    <ColorSelector.ColorSwatchItem />
  </ColorSelector.ColorSwatchGroup>
</ColorSelector.Root>

Change Size

Change Default Value

To change the default value, set defaultValue to a value.

Change Alpha Value

To change the alpha value, set defaultValue to a value containing the alpha value, or set format to "hexa" or "hsla" etc.

Change Color Swatches

To change the color swatches, set colorSwatches to an array.

Pick a color

Change Color Swatch Group Columns

To change the number of columns in the color swatch group, set colorSwatchGroupColumns to a number.

Pick a color

Change Shape

Make Disabled

Make Read Only

Customize Component

Control

Props