Search the design system

Components – legacy

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="mt-3"
    focus
    size={300}
    type="submit"
  >
    Spara
  </Button>
</Form>

Properties

TimeInput

Prop nameTypeDefault ValueDescription
errorMessageDefaultstring'Du måste ange en tid i formatet hh:mm'
errorMessageRequiredstring'Du måste ange en tid'
helpMessagestring'HH:MM'
isRequiredbooltrue
labelstring'Tid'
infoMessagestring
isLessSpacebool
maxstring
minstring
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 fieldsTime input / Usage
ComponentsItems menu / 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