
Components
Date input
Examples of date inputs with built-in validation.
<Form isVertical onSubmit={function noRefCheck() {}} onValidate={function noRefCheck() {}} > <DateInput name="dateExample1" onChange={function noRefCheck() {}} value="" /> <Button block className="margin-xs-top-3" inverted type="submit" > Validera </Button> <p> Open console to view validations </p> </Form>
Properties
DateInput
| Prop name | Type | Default Value | Description |
|---|---|---|---|
| errorMessageDefault | string | 'Du måste ange ett datum i formatet åååå-mm-dd' | |
| errorMessageRequired | string | 'Du måste ange ett datum' | |
| hasTime | bool | false | |
| helpMessage | string | 'ÅÅÅÅ-MM-DD' | |
| isRequired | bool | true | |
| label | string | 'Datum' | |
| 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.
