Sanity Library Reference Docs
    Preparing search index...
    • The Studio-style date/datetime picker, adapted from Sanity Studio's own DatePicker (not exported by the sanity package) minus its timezone/i18n plumbing — dates are wall-clock local throughout. Every onSelect is one completed gesture (day click, committed time edit, "now"), never a keystroke; commit and dismissal are the caller's.

      Parameters

      • __namedParameters: { onSelect: (next: Date) => void; selectTime?: boolean; value?: Date }
        • onSelect: (next: Date) => void
        • OptionalselectTime?: boolean

          Render the time row and preserve time-of-day across day picks.

        • Optionalvalue?: Date

          The committed value; absent marks no day selected, and day picks take their time-of-day from "now".

      Returns Element