@yarcl/react
    Preparing search index...

    Function DatePicker

    • Picks a day or a range of days from a calendar popover. Built on Popover, with dates handled by date-fns. The trigger shares the size scale with Input. Picked days use variant, days inside a range use defaults.softVariant. The calendar follows the WAI-ARIA date picker dialog pattern. Works inside a Field.

      Parameters

      Returns Element

      <Field label="Check-in">
      <DatePicker value={date} onValueChange={setDate} min={new Date()} placeholder="Pick a date" />
      </Field>