Date Picker

Calendar popup for selecting a single date. Supports event dots, min/max date boundaries, label, placeholder, and a Today shortcut.

import{ DatePicker } from "@pepulux/ui"

Default — no selection

Click the trigger button to open the calendar. Select a date and click Apply.

With pre-selected value

Pass a Date object to start with a date already selected.

With event dots

Pass eventDates to display a small dot under days that have events. Useful for scheduling interfaces.

Dots appear on Jun 25, 26, and 30

Opens by default

Pass defaultOpen={true} to show the calendar immediately on mount — useful in inline layouts.

July 2026
Select date
Mo
Tu
We
Th
Fr
Sa
Su

Check-in date — custom placeholder

Custom placeholder text for contextual labeling.

Props

PropTypeDefaultDescription
valueDate | nullControlled selected date. Pass null for no selection.
onChange(date: Date) => voidCalled when user clicks Apply in the calendar
placeholderstring"Select date"Trigger button text when no date is selected
eventDatesDate[][]Dates to mark with a dot indicator in the calendar grid
defaultOpenbooleanfalseOpen the calendar popup on initial render
classNamestringAdditional CSS classes on the wrapper