
Components
Email input
Examples of email inputs with built-in validation.
<Form isVertical onSubmit={function noRefCheck() {}} onValidate={function noRefCheck() {}} > <EmailInput name="emailExample1" onChange={function noRefCheck() {}} value="info@svenskaspel.se" /> <Button block className="margin-xs-top-3" inverted type="submit" > Validera </Button> <p> Open console to view validations </p> </Form>
Properties
EmailInput
| Prop name | Type | Default Value | Description |
|---|---|---|---|
| errorMessageDefault | string | 'Du måste ange en giltig e-postadress' | |
| errorMessageRequired | string | 'Du måste ange en e-postadress' | |
| isRequired | bool | true | |
| label | string | 'E-post' | |
| helpMessage | string | ||
| infoMessage | string | ||
| isLessSpace | bool | ||
| 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.

