Navigieren auf digital.sbb.ch

Textfield

1. What does the element do?

  • It is used for the entry of text and numbers.

2. When should the element be used?

  • When an entry from the user is required.

3. Rules

  • Optional entries include the text ‘(optional)’ behind the label text. For short fields, the text ‘(optional)’ can be abbreviated to ‘(opt.)’.
  • If the text becomes longer than the width of the entry field when being entered, the written text is moved to the left so that what is currently being written can always be seen.
  • After leaving the entry field with a long text, it is cut off at the end and designated with “…”.
  • If the user can never edit a form field, no entry field may be used (display as text).
  • The right type of keyboard must be selected depending on the type of entry field (default, e-mail, URL, phone)

4. Variants and statuses

The element has the following statuses:

  • Default
  • Active
  • Error
  • Disabled

The element has the following variants:

  • listed / boxed
  • with icon / without icon
  • with label / without label

4.1 Listed, with label, without icons

4.1.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.1.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.2 Listed, with label, with icons

4.2.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.2.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.3 Listed, without label, with icons

4.3.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.3.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.4 Boxed, with label, without icons

4.4.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.4.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.5 Boxed, with label, with icons

4.5.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.5.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.6 Boxed, without label, with icons

4.6.1 Default

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

4.6.2 Placeholder

Darstellung des Text-input Feldes
Darstellung des Text-input Feldes

Design Specification

Figma-Link