···55To create a new hip component follow these steps:
66771. 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
88+2. create a component in packages/hip-ui/src/components
99+3. Create a config for that component
1010+4. Write it's config in the new component's dir
1111+5. Add the config to packages/hip-ui/src/cli/install
1212+6. Run the build
1313+7. Run `pnpm hip install --all` in the apps/docs dir
1414+8. Generate and .mdx page with example in apps/docs
15151616## Rules
17171818- Prefer using packages/hip-ui/src/components/flex and packages/hip-ui/src/components/grid over css
1919- Use icon from lucide-react
2020+- Prefer re-using existing component rather than redefining them inside each component
+1-1
README.md
···33333434#### react-aria wrappers
35353636-- [ ] Date Picker
3736- [ ] Range Date Picker
38373938- [ ] Drawer
···5352- [ ] Toolbar
5453- [ ] Toast
55545555+- [x] Date Picker
5656- [x] Calendar
5757- [x] Range Calendar
5858- [x] Color Picker
···11+---
22+title: Date Picker
33+description: A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.
44+---
55+66+import { PropDocs } from '../../lib/PropDocs'
77+import { Example } from '../../lib/Example'
88+import { Basic } from '../../examples/date-picker/basic'
99+1010+<Example src={Basic} />
1111+1212+## Installation
1313+1414+Run the following command to add the date picker component to your project.
1515+1616+```bash
1717+pnpm hip install date-picker
1818+```
1919+2020+## Props
2121+2222+This component is built using the [React Aria DatePicker](https://react-spectrum.adobe.com/react-aria/DatePicker.html).
2323+2424+<PropDocs components={["DatePicker"]} />
2525+2626+## Related Components
2727+2828+- [DateField](/docs/components/date-field) - For date input without popover
2929+- [Calendar](/docs/components/calendar) - For standalone calendar display
3030+- [RangeCalendar](/docs/components/range-calendar) - For date range selection
3131+- [TimeField](/docs/components/time-field) - For time input
3232+- [Label](/docs/components/label) - For form labels and descriptions