TimePicker API
import { TimePicker } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
allowInput | boolean | |
clearable | boolean | |
defaultOpen | boolean | |
defaultValue | string | |
description | string | Helper text under the label: the same as hint, named like the other fields' prop. |
disabled | boolean | |
error | string | |
format | '24h' | '12h' | |
hint | string | |
label | string | |
locale | string | |
max | string | |
min | string | |
mode | 'popover' | 'inline' | |
name | string | |
onChange | (detail: TimePickerDetail) => void | |
onClose | () => void | |
onInput | (detail: TimePickerDetail) => void | |
onInvalid | (detail: { raw: string; reason: string }) => void | |
onOpen | () => void | |
onValueChange | (value: string | null) => void | |
open | boolean | |
readOnly | boolean | |
required | boolean | |
seconds | boolean | |
step | number | |
stepSeconds | number | |
translations | Record<string, string> | string | |
value | string | |
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