Search the design system

Components – legacy

Mobile input

Examples of mobile input with built-in validation.

Open console to view validations

<Form
  isVertical
  onSubmit={function noRefCheck() {}}
  onValidate={function noRefCheck() {}}
>
  <MobileInput
    name="mobileExample1"
    onChange={function noRefCheck() {}}
    value="0701122333"
  />
  <Button
    block
    className="mt-3"
    inverted
    size={300}
    type="submit"
  >
    Validera
  </Button>
  <p>
    Open console to view validations
  </p>
</Form>

Properties

MobileInput

Prop nameTypeDefault ValueDescription
errorMessageDefaultstring'Ogiltigt format på mobilnumret'
errorMessageRequiredstring'Du måste ange ett mobilnummer'
isRequiredbooltrue
labelstring'Ange mobilnummer'
helpMessagestring
infoMessagestring
isLessSpacebool
name *string
onBlurfunc
onChange *func
onFocusfunc
value *string

Accessibility

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines.

Read more about WCAG 2.1 AA.

Components / Input fieldsMobile input / Usage
Components / Input fieldsSSN input / Usage

© DesignTech - AB Svenska Spel

What's newTerms of useAccessibility statementCookiesTeams channel [Internal]
@svs/ui version
2.3.0

Feedback

We always want to improve the Design System and would be thrilled to get your feedback.

Please share your wisdom with us.

Microsoft Teams [internal]

Designsystem@svenskaspel.se