MangeQR
v1.0
TarifsBlogComponents
Docs
Date Picker

Date Picker

A date picker component that allows users to select a date from a calendar.

Disabled
Error

Instalation

npx shadcn add https://extend-ui.com/registry/date-picker.json 

Calendar Component Props

NameTypeDescription
variantdefault | glowingRing | outline

Determines the visual style of the calendar. Options include default, glowingRing (adds a glowing border), and outline (adds a bordered style).

classNamestring

Additional CSS classes to style the calendar's root element.

classNamesRecord<string, string>

Custom class names for specific calendar parts (e.g., days, rows, navigation buttons). Overrides default classes.

showOutsideDaysboolean

If true, displays days from the previous and next months within the current month's grid. Defaults to true.

monthDate

The current month displayed in the calendar. Useful for controlled components.

onMonthChange(month: Date) => void

Callback function triggered when the displayed month changes.

...propsReact.ComponentProps<typeof DayPicker>

Additional props passed to the underlying DayPicker component from react-day-picker.