Skip to main content

DateRangePicker

Imports

import {DateRangePicker} from 'material-expressive-react';
import {DateRangePicker} from 'material-expressive-react/datetime';

Props

PropTypeDefaultRequiredDescription
cancelTextstringNo
clearTextstringNo
confirmTextstringNo
constraintsDatePickerConstraintsNo
defaultInputModeenumNo
defaultOpenbooleanNo
defaultValueDateRangeNoUncontrolled selected range.
inputModeenumNo
localestringNo
maxDatenumber | DateNo
minDatenumber | DateNoAllowed range of selectable days (UTC ms). Overrides constraints.min/max.
onCancel(() => void)No
onConfirm((value: number | DateRange | null) => void)No
onDismiss(() => void)No
onOpenChange((open: boolean) => void)No
onValueChange((value: DateRange) => void)No
onValueReselect((value: DateRange) => void)No
openbooleanNoFor modal pickers.
showClearbooleanNo
supportingTextstringNo
timeZonestringNo
titlestringSelect datesNo
valueDateRangeNoControlled selected range (UTC ms).
variantenumNo

Events

This component does not explicitly re-emit DOM events via wrapper props.

Slots

Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).

If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).

Examples

See Storybook for live examples and variants.