Skip to main content
Version: Next

TimePicker API

import { TimePicker } from '@editora/ui-react';

Props​

PropTypeDescription
allowInputboolean
clearableboolean
defaultOpenboolean
defaultValuestring
descriptionstringHelper text under the label: the same as hint, named like the other fields' prop.
disabledboolean
errorstring
format'24h' | '12h'
hintstring
labelstring
localestring
maxstring
minstring
mode'popover' | 'inline'
namestring
onChange(detail: TimePickerDetail) => void
onClose() => void
onInput(detail: TimePickerDetail) => void
onInvalid(detail: { raw: string; reason: string }) => void
onOpen() => void
onValueChange(value: string | null) => void
openboolean
readOnlyboolean
requiredboolean
secondsboolean
stepnumber
stepSecondsnumber
translationsRecord<string, string> | string
valuestring
variant'default' | 'contrast'

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-time-picker>​

TimePicker renders the ui-time-picker custom element from @editora/ui-core, which can also be used without React.

Attributes: allow-input, clearable, default-open, default-value, disabled, error, format, hint, label, locale, max, min, mode, name, open, readonly, required, seconds, step, step-seconds, translations, value, variant

Events: change, input, invalid