TimePicker
Props
Name | Type | Description |
---|---|---|
date | Date | null | ... |
format | string | hh:mm is default |
isDisabled | boolean | In case you want it to be disabled |
isOpen | boolean | ... |
onBlur | (ev: BlurEvent) => void | Blur handler |
onChange | (ev: ChangeEvent) => void | Change handler |
onEnterPress | (ev: ChangeEvent) => void | Enter press handler |
onFocus | (ev: FocusEvent) => void | Focus handler |
placeholder | string | Placeholder |
shouldRender | boolean | Pass false if you don't want the component to appear |
timeMax | [number, number] | Max allowed time, [hours, minutes] |
timeMin | [number, number] | Min allowed time, [hours, minutes] |
value | string | Date | null | Selected date |
_[className] | [x: string]: unknown | E.g.: _w-48 adds a css class w-48 to the component's outer wrapper. |
<L.TimePicker onChange={({ component }) => console.log(component.value)} _w-48 />