Skip to main content

TimePicker

Imports

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

Props

PropTypeDefaultRequiredDescription
cancelTextstringCancelNo
clearTextstringClearNo
confirmTextstringOKNo
constraintsTimePickerConstraintsNo
defaultInputModeenumNo
defaultOpenbooleanfalseNo
defaultValuenumber | TimeRange | nullNo
formatenum12hNo
inputModeenumNo
localestringNo
maxTimeTimeValueNo
minTimeTimeValueNoAllowed min/max time (minute-of-day). Accepts minutes, {hour,minute}, or 'HH:MM'.
minuteStepenum5NoMinute 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: number | TimeRange | null) => void)No
onValueReselect((value: number | TimeRange | null) => void)No
openbooleanNo
selectionModeenumsingleNo
showClearbooleantrueNo
supportingTextstringNo
titlestringNo
valuenumber | TimeRange | nullNo
variantenummodalNo

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.