saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Date Picker

Date Picker

A date picker component with calendar popup.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/date-picker

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. 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.