Date & Time field
This form field allows the user to select a date and a time. Used in conjunction with the date & time modal in this pattern.
Package: @terreno/ui
Categories: Component
Props interface: DateTimeFieldProps
Story source: demo/stories/Date&Timefield.stories.tsx
Live demo
Props
| Prop | Type | Required | Description |
|---|---|---|---|
onChange | reflection | Yes | |
type | union | Yes | |
blurOnSubmit | boolean | ||
dateFormat | string | ||
disabled | boolean | ||
errorText | string | ||
helperText | string | ||
iconName | IconName | ||
id | string | ||
onBlur | OnChangeCallback | ||
onEnter | reflection | ||
onFocus | reflection | ||
onIconClick | reflection | ||
onSubmitEditing | reflection | ||
onTimezoneChange | reflection | ||
pickerType | union | ||
placeholder | string | ||
showTimezone | boolean | ||
testID | string | Root test id for the primary interactive element or container. | |
testIDs | FieldTestIDs | ||
timezone | string | ||
title | string | ||
value | string |