···11+---
22+title: Color Slider
33+description: A 1D color selection slider for adjusting a single color channel.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/color-slider/basic'
99+import { Channels } from '../../examples/color-slider/channels'
1010+import { HideValueLabel } from '../../examples/color-slider/hide-value-label'
1111+import { Disabled } from '../../examples/color-slider/disabled'
1212+import { Size } from '../../examples/color-slider/size'
1313+1414+<Example src={Basic} />
1515+1616+## Installation
1717+1818+Run the following command to add the color slider component to your project.
1919+2020+```bash
2121+pnpm hip install color-slider
2222+```
2323+2424+## Props
2525+2626+This component is built using the [React Aria ColorSlider](https://react-spectrum.adobe.com/react-aria/ColorSlider.html).
2727+2828+<PropDocs components={["ColorSlider"]} />
2929+3030+## Features
3131+3232+### Channels
3333+3434+Adjust different channels such as hue, saturation, lightness, and brightness.
3535+3636+<Example src={Channels} />
3737+3838+### Hide Value Label
3939+4040+The value label can be hidden by setting the `showValueLabel` prop to false.
4141+4242+<Example src={HideValueLabel} />
4343+4444+### Disabled
4545+4646+The color slider can be disabled by setting the `isDisabled` prop to true.
4747+4848+<Example src={Disabled} />
4949+5050+### Size
5151+5252+The color slider can be sized by setting the `size` prop to "sm", "md", or "lg".
5353+5454+<Example src={Size} />
5555+5656+## Related Components
5757+5858+- [ColorArea](/docs/components/color-area) - 2D color selection
5959+- [ColorField](/docs/components/color-field) - Entering color values
6060+- [Slider](/docs/components/slider) - Generic numeric slider