
Components
Time input
Examples of time input with built-in validation.
<Form isVertical onSubmit={function noRefCheck() {}} onValidate={function noRefCheck() {}} > <TimeInput name="timeExample1" onChange={function noRefCheck() {}} value="" /> <Button block className="margin-xs-top-3" focus type="submit" > Spara </Button> </Form>
Properties
TimeInput
| Prop name | Type | Default Value | Description |
|---|---|---|---|
| errorMessageDefault | string | 'Du måste ange en tid i formatet hh:mm' | |
| errorMessageRequired | string | 'Du måste ange en tid' | |
| helpMessage | string | 'HH:MM' | |
| isRequired | bool | true | |
| label | string | 'Tid' | |
| infoMessage | string | ||
| isLessSpace | bool | ||
| max | string | ||
| min | string | ||
| name * | string | ||
| onBlur | func | ||
| onChange * | func | ||
| onFocus | func | ||
| value * | string |
Accessibility
This component has been validated to meet the WCAG 2.1 AA accessibility guidelines.
Related
Feedback
We always want to improve the Design System and would be thrilled to get your feedback.
Please share your wisdom with us.
