Skip to Content
SmartUI

Date Picker

Pick one date from a calendar.

Examination date
Tomorrow at the earliest.

Usage

import { DatePicker } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Booking and schedule dates near today.

When not to use

  • Date of birth. Use three fields.

Props

PropTypeDefaultDescription
labelstring-Always visible above the control.
helperTextstring-Help text below the control.
errorMessagestring-Shown when isInvalid; replaces the helper text.
variant'raised' | 'flat''raised'Raised on the canvas, flat inside a white card.
size'sm' | 'md' | 'lg''md'md on desktop, lg on touch.
isInvalid, isDisabled, isRequiredbooleanfalse
value, defaultValue, onChangeDateValue, DateValue, (v) => void-
minValue, maxValueDateValue-
isDateUnavailable(date) => boolean-Marks closed days.

Accessibility

  • Arrow keys move by day, Page Up and Page Down by month.
  • Unavailable dates stay visible, dimmed.

On this page