1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. mangacn
  3. Date Picker

Date Picker

ui

mangacn's own Date Picker (shadcn documents it as a recipe, not an item): DatePicker (one date) and DateRangePicker (from / to), built on the manga Popover and Calendar. The trigger is a field like the Select trigger: 2px ink line, a drawn calendar mark, the placeholder in the same ink (italic, never grey), the date formatted with date-fns. Hover thickens the line, focus is ink / paper / ink, the line goes to 3px while open, disabled is dashed with a tone frame, aria-invalid adds the accent line and a "!" mark. The calendar opens in a speech bubble with a tail toward the trigger and pops in; choosing a day closes it (single). The range picker shows two months from 640px and one on phones, so the bubble fits a 360px screen. Works with Radix and Base UI (the trigger only gets a className).

pnpm dlx shadcn@latest add "https://mangacn.romain-sonnet.fr/r/date-picker.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
  • cn
  • date-fns
  • react-day-picker
@ui/manga/date-picker.tsx