lerpa
ver1.0.0
node20.11
branch⎇ main
uptime14d 03:42:17
cpu3.2%
mem14 MB
teams4,213
utc00:00:00
LIVE

Datepicker

A production-scale, light + dark Datepicker component. Copy-paste via the CLI; you own the code.

npx lerpa-cli add datepicker
Live preview available in the gallery.

Usage

import { Datepicker } from "@lerpa/ui";

<Datepicker />

Props

PropTypeDefaultDescription
valueDate | null
defaultValueDate | null
onChange(date: Date) => void
minDateDate
maxDateDate
isDateDisabled(date: Date) => boolean
placeholderstring
weekStartsOn0 | 1
localestring
disabledboolean
idstring
namestring
classNamestring
contentClassNamestring

Accessibility

  • Keyboard accessible interactive elements.
  • Respects prefers-reduced-motion where animated.
  • Color is never the only signal.

Overview

The Datepicker component is a UI component in Lerpa UI's 1318-item shadcn-compatible registry, built for React 19 and Tailwind CSS v4. It exposes 14 configurable props, documented in the table below. It builds on framer-motion, lucide-react. Install it once with the CLI and the source is written into your project as a file you own — read it, edit it, or remove it, with no version to lock.

Install options

Add Datepicker with the Lerpa CLI, or with the shadcn CLI pointed at the registry URL — the source is shadcn-compatible, so either tool writes the same file.

# Lerpa CLI
pnpm dlx lerpa-cli add datepicker

# shadcn-compatible
npx shadcn add https://lerpaui.com/r/datepicker.json

Dependencies

  • framer-motion
  • lucide-react

Related components

Browse the full component gallery.

lerpa · running
turbopack142ms
a11yAAA
tokens14
network14kb