Component

DatePicker

Pairs a typed date field with a calendar popover.

Install

Run the CLI to copy the source into your project.

pnpm dlx @stalk-ui/cli add @stalk-ui/date-picker

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<EventDatePicker />

Props

Public component props extracted from the source TypeScript types.

PropTypeRequiredDefaultDescription
`value``Date \undefined`No-
`onChange``(date: Date \undefined) => void`No-
`locale``string`No-BCP-47 locale for the typed field.
`size``InputSize`No--
`invalid``boolean`No--
`disabled``boolean`No--
`className``string`No--
`'aria-label'``string`No-Accessible label for the typed date field.
`calendarLabel``string`No-Accessible label for the calendar trigger button.

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

No recipe variants are documented for this component.

Registry

Files this component contributes to your registry install.

  • Manifest: `/r/date-picker.json`
  • Recipe: `datePicker`
  • Files: `src/components/ui/date-picker.tsx`