fma-ds

Date Picker

A typed date input paired with a calendar popover over one value, for single dates (DatePicker) or ranges (DateRangePicker).

FormsoriginalMITChangelogRegistry JSON

Overview

  • Granularity: month- and year-only, as well as days.
  • Availability: unavailableRanges blocks dates.
  • Non-modal popover: the input stays editable while the calendar is open, and the calendar follows what is typed.

Installation

  1. 1

    Register the @fma-ds namespace in components.json (once)

    components.json
    {  "registries": {    "@fma-ds": "https://ds.fmartinsandre.dev.br/r/{name}.json"  }}
  2. 2

    Add the item

    pnpm dlx shadcn@latest add @fma-ds/date-picker

    Files land in components/fma-ds/date-picker.tsx; npm and registry dependencies are installed along with them.

Dependencies

npm
@internationalized/date@^3.12.4cn@^0.5.0lucide-react@^1.61.0react-aria-components@^1.22.1