Skip to content

Simple date of birth picker built on top of Shadcn UI's DatePickerDemo. Adds a year picker and month picker to the component for easier date of birth selection.

Notifications You must be signed in to change notification settings

nathanclairmonte/date-of-birth-picker

Repository files navigation

This is a simple DateOfBirthPicker component, built on top of the DatePickerDemo from shadcn/ui. Adds a YearPicker and a MonthPicker to facilitate easier date of birth selection.

Notes

  • To use the DateOfBirthPicker component in a form:
  • Destructure formData and setFormData props inside the component.
  • Un-comment the line which updates formData with the date state from the picker.
  • Create the formData state in the parent component containing the form, and pass formData and setFormData to the DateOfBirthPicker component.

About

Simple date of birth picker built on top of Shadcn UI's DatePickerDemo. Adds a year picker and month picker to the component for easier date of birth selection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published