···11+---
22+alwaysApply: false
33+---
44+55+To create a new hip component follow these steps:
66+77+1. First ask if there is some docs for a headless component to look at
88+1. create a component in packages/hip-ui/src/components
99+1. Create a config for that component
1010+1. Write it's config in the new component's dir
1111+1. Add the config to packages/hip-ui/src/cli/install
1212+1. Run the build
1313+1. Run `pnpm hip install --all` in the apps/docs dir
1414+1. Generate and .mdx page with example in apps/docs
+1-1
README.md
···3434#### react-aria wrappers
35353636- [ ] Color Picker
3737-- [ ] Color Swatch Picker
38373938- [ ] Calendar
4039- [ ] Date Picker
···5756- [ ] Toolbar
5857- [ ] Toast
59585959+- [x] Color Swatch Picker
6060- [x] Color Wheel
6161- [x] Color Slider
6262- [x] Color Area
···11+---
22+title: Color Swatch Picker
33+description: A list of color swatches that allows selecting one color.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/color-swatch-picker/basic'
99+import { Size } from '../../examples/color-swatch-picker/size'
1010+import { Layout } from '../../examples/color-swatch-picker/layout'
1111+1212+<Example src={Basic} />
1313+1414+## Installation
1515+1616+Run the following command to add the color swatch picker to your project.
1717+1818+```bash
1919+pnpm hip install color-swatch-picker
2020+```
2121+2222+## Props
2323+2424+This component is built using the React Aria ColorSwatchPicker.
2525+See the official guide for full behavior and API details.
2626+2727+- Docs: [React Aria ColorSwatchPicker](https://react-spectrum.adobe.com/react-aria/ColorSwatchPicker.html)
2828+2929+<PropDocs components={["ColorSwatchPicker", "ColorSwatchPickerItem"]} />
3030+3131+## Features
3232+3333+### Size
3434+3535+The `ColorSwatchPicker` supports the `size` prop to adjust the size of the swatches.
3636+3737+<Example src={Size} />
3838+3939+### Layout
4040+4141+The swatches can be laid out in a stack with `layout="stack"`
4242+4343+<Example src={Layout} />
4444+4545+## Related Components
4646+4747+- [ColorSwatch](/docs/components/color-swatch) - For individual color previews
4848+- [ColorField](/docs/components/color-field) - For color input
4949+- [Grid](/docs/components/grid) - For arranging swatches
5050+5151+