-
Notifications
You must be signed in to change notification settings - Fork 0
add date picker #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add date picker #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new DatePicker
component that wraps the existing Popover
and Calendar
components into a reusable date-picker UI element.
- Adds a
DatePicker
component with customizable trigger and date formatting. - Integrates
PopoverTrigger
andPopoverContent
to host the calendar. - Exposes underlying calendar props via a props spread.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should merge this in. We just need the one change to match the new import formats.
@@ -0,0 +1,58 @@ | |||
'use client' | |||
|
|||
import * as React from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this per #65?
The date picker component combines the Popover and Calendar components. This implementation aims to componentize the example, making it easier for the model to understand and reuse.