···11+---
22+title: Color Area
33+description: A 2D color selection area for choosing colors across two channels.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/color-area/basic'
99+import { AspectRatio } from '../../examples/color-area/aspect-ratio'
1010+import { Disabled } from '../../examples/color-area/disabled'
1111+1212+<Example src={Basic} />
1313+1414+## Installation
1515+1616+Run the following command to add the color area component to your project.
1717+1818+```bash
1919+pnpm hip install color-area
2020+```
2121+2222+## Props
2323+2424+This component is built using the [React Aria ColorArea](https://react-spectrum.adobe.com/react-aria/ColorArea.html).
2525+2626+<PropDocs components={["ColorArea"]} />
2727+2828+## Features
2929+3030+### Aspect Ratio
3131+3232+Control the rendered dimensions by setting a custom aspect ratio.
3333+3434+<Example src={AspectRatio} />
3535+3636+## Disabled
3737+3838+The color area can be disabled by setting the `disabled` prop to true.
3939+4040+<Example src={Disabled} />
4141+4242+## Related Components
4343+4444+- [ColorField](/docs/components/color-field) - For entering color values
4545+- [ColorSwatch](/docs/components/color-swatch) - For displaying selected colors