Skip to main content

TimeRangePicker

Imports

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

Props

PropTypeDefaultRequiredDescription
cancelTextstringNo
clearTextstringNo
confirmTextstringNo
constraintsTimePickerConstraintsNo
defaultInputModeenumNo
defaultOpenbooleanNo
defaultValueTimeRangeNo
formatenumNo
inputModeenumNo
localestringNo
maxTimeTimeValueNo
minTimeTimeValueNoAllowed min/max time (minute-of-day). Accepts minutes, {hour,minute}, or 'HH:MM'.
minuteStepenumNoMinute increments for clock dial selection.
onCancel(() => void)No
onConfirm((value: number | TimeRange | null) => void)No
onDismiss(() => void)No
onOpenChange((open: boolean) => void)No
onValueChange((value: TimeRange) => void)No
onValueReselect((value: TimeRange) => void)No
openbooleanNo
showClearbooleanNo
supportingTextstringNo
titlestringSelect timesNo
valueTimeRangeNo
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.