We use cookies to ensure you get the best experience on our website. Read our privacy policy

Skip to main content

Directory

Date Picker Component

The DatePicker component provides an intuitive interface for date selection with a calendar popup. It features smooth animations, keyboard navigation, and comprehensive accessibility support.

  • Check Circle

    Calendar Interface: Visual date selection with month navigation

  • Check Circle

    Date Formatting: Flexible date format options

  • Check Circle

    Range Constraints: Optional min/max date limitations

  • Check Circle

    Keyboard Support: Full keyboard navigation and accessibility

  • Check Circle

    Today Highlighting: Visual indicator for current date

Create a simple date picker with default settings:

<DatePicker />

Specify initial date and modes:

<DatePicker
calendarProps={{ value: new Date() }}
/>
<DatePicker
calendarProps={{
value: { start: new Date(2025, 1, 1), end: new Date(2025, 1, 10) },
mode: 'range',
}}
/>
<DatePicker
calendarProps={{
value: [new Date(2025, 1, 1), new Date(2025, 1, 3)],
mode: 'multiple',
}}
/>
DatePicker Component Extends Popover Component Props
Prop Type Default Description
placeholder string Select date Input placeholder text
calendarProps CalendarProps Calendar component props
closeOnSelect boolean true Close the popover after selecting a date (Unless mode is multiple)
Event scheduling
Booking systems
Registration forms
Filter controls
Appointment picking
Delivery scheduling
Travel booking
Event planning
Report periods
Booking spans
Filter ranges
Schedule planning

Limited Time Launch Sale

Create intuitive date selection interfaces with our pre-built DatePicker component. Get the AstroJS starter template now and implement professional date picking instantly.

GET 60% OFF!
North Star Themes Logo

Subscribe to our newsletter

Get the latest AstroJS tips and tricks right to your inbox

Email: [email protected]

© 2025 North Star Themes

Web Kit Provided By North Star Themes