Integrated ResearchPicasso
Components

Date picker

A field-shaped trigger that opens a calendar.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

A field-shaped trigger that opens a calendar.

Import

import { DatePicker } from "@ir/ui";

Variants

AxisOptionsDefault
filledtrue · false—

Do and don't

Say "Pick a date", and let a real value look different.

Don't — Show today's date as the placeholder.

The only thing separating the two states is the text colour. A date-shaped placeholder reads as a value that has already been chosen.

Use a format with the month in words.

Don't — Render 03/04/2026.

That date is in March for half the world and April for the other half, and nothing on screen says which.

Pair it with a field when the range is wide.

Don't — Make the calendar the only way in for a date far from today.

A grid is the fast path for next Tuesday and the slow one for a date two years out.

Wait for both ends.

Don't — Close the popover as soon as the first date is clicked in range mode.

Half a range is not an answer, and reopening to finish it loses the context of what was already picked.

Put the rule in the field's description.

Don't — Silently disable everything before a date.

People try the date they want first. If it will not take, they need to know why before they start hunting.

Accessibility

  • The trigger is a <button>, not a text input. There is no typed-date path — Enter or Space opens the calendar, which autofocuses, so focus lands where the next keystroke is expected.
  • The calendar icon is aria-hidden; the trigger's text is its accessible name, so an empty picker needs placeholder text that says what it selects.
  • In range mode the popover stays open after the first date, because a range is not a complete answer until both ends are in.

Where it is drawn

Figma — structure from figma, measurements from figma.

Open in Storybook

On this page