saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Date Picker

Date Picker

A date picker component with calendar popup.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/date-picker.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { DatePicker } from "@/components/ui/date-picker"
<DatePicker date={date} onDateChange={setDate} />

Examples

Sizes

Loading...
Size variants.

With Label

Loading...
Date picker with label.

With Presets

Loading...
Preset date buttons.

Date Range

Loading...
Date range picker.

API Reference

PropTypeDefaultDescription
dateDate—Selected date.
onDateChange(date: Date) => void—Date change handler.
PreviousData TableNextDialog

On This Page

  • Installation
  • Usage
  • Examples
  • Sizes
  • With Label
  • With Presets
  • Date Range
  • API Reference

Small

Default

Large

Choose the date when production begins.