Go Main page
Go Main page

Web components

cover

components

Input Digit Sequence

v.1.0.0 | Saturn

A type of input used to enter sequences of digits such as passwords or signature keys.

Component

Play with the component with our playground.

Anatomy

Foo

NameDescription

1

Main container
Required
width
fluid (100% bounded by parent element) -
height
fluid (content).

2

Label
Required
Indicates the information requested from the user.

3

Obfuscated digit
Required
The digit entered by the user is hidden to ensure its security. It is represented by a circle.

4

Obfuscated pre-filled digit icon
Required
It is represented by a square. It always has to be on disabled state as the user cannot change it.

5

Item container
Required
width
fluid (content) -
height
fluid (100% bounded by parent element).

6

Input container
Required
width
fluid (content) -
height
fluid (100% bounded by parent element).

7

Digit
Required
In case the digit entered by the user needs to be displayed, it can be displayed in this way.

8

Visibility action link
Required
It allows the user to show or hide the code digits entered.

9

Number
Indicates the position of the digit to be entered. Positions will only be displayed when there are positions pre-filled by the system.

10

Helper text
Informs the user what type of information to enter in the field.

11

Error icon
The error icon is used to alert the user about an error.

12

Error text
Error text to give guidance to correct mistakes.

13

Tooltip
This iconButton raises a tooltip with extra information.

Field states

Empty disabled

  • Cell disabled for the user. No content visible.
  • Filled disabled

  • Cell disabled for the user. Filled but content hidden. The dot size is 32px ( aprox 5px x 5px).
  • Empty default

  • Digit item empty when it has no value.
  • Filled Shown - Default

  • Filled by the user and visible.
  • Filled Hidden - Default

  • Filled by the user and hidden. The dot size is 32px ( aprox 5px x 5px)
  • Filled active

  • Cell filled visible and currently active.
  • Filled hidden - Active

  • Cell filled hidden and currently active. The dot size is 32px ( aprox 5px x 5px).
  • Blocked hidden by the system

  • System hides the cell data so the user only has to fill some concrete cells in the main component.
  • Keyboard focus

  • When the user looks for the focus through the keyboard it will put the input in this state, so that he can start typing.
  • Input states

    No pre-filled fields

    Default empty

  • A default state communicates an interactive component or element.
  • The empty input can display hidden pre-filled positions that cannot be changed by the user.
  • Default filled

  • A default filled state communicates a component or interactive element that has content that the user has included. It can display hidden pre-filled positions that cannot be changed by the user.
  • Active empty

  • If we click or tap on the input, it will enter an active state allowing us to edit the placeholder information. It can display hidden pre-filled positions that cannot be changed by the user.
  • Active filled

  • If we click or tap on the entry, it will enter an active state that allows us to edit the information that the user has previously included. It can display hidden pre-filled positions that cannot be changed by the user.
  • Active show digit

  • If we click or tap on the input, it will enter an active state allowing us to edit the placeholder information. It can display hidden pre-filled positions that cannot be changed by the user.
  • Error empty

  • The error status communicates that something is wrong. In the case of empty it may be because the field is empty and needs to be filled in. It can display hidden pre-filled positions that cannot be changed by the user.
  • Error filled

  • The error status communicates that something is wrong. In the case of a pre-filled error input it may be due to formatting errors or that a data has been entered incorrectly. It can display hidden pre-filled positions that cannot be changed by the user.
  • Keyboard focus empty

  • When the user looks for the focus through the keyboard it will put the input in this state, so that he can start typing. It can display hidden pre-filled positions that cannot be changed by the user.
  • Keyboard focus filled

  • When the user searches for the focus through the keyboard it will put the entry in this state, so that he/she can modify the text he/she had previously included. It can display hidden pre-filled positions that cannot be changed by the user.
  • Disabled empty

  • A disabled state communicates a noninteractive component or element. It can display hidden pre-filled positions that cannot be changed by the user.
  • Disabled filled

  • A disabled fill state communicates a non-interactive component or element with content previously included by the user. These hidden pre-filled and disabled positions are represented by a square icon to be diferenciated from the non-disabled positions.
  • Options

    Maximum and minimum of items

  • The component has a maximum of 8 items and a minimum of 4.
  • It remains centered on the screen no matter the number of items. Hidden pre-filled positions can be displayed so they cannot be changed by the user.
  • Disabled filled

  • A disabled fill state communicates a non-interactive component or element with content previously included by the user. These hidden pre-filled and disabled positions are represented by a square icon to be diferenciated from the non-disabled positions.
  • Layout

    Internal padding

  • The internal padding between the label, the cells and the button remains 8px
  • Minimum padding

  • The minimum size of the component is 296px, achieved by reducing the size of each cell to 30px. Never reduce the spacing between cells, it shoulf remain on 8px. - Never reduce the cells more than 30px.
  • Maximum and minimum of items

  • The component has a maximum of 8 items and a minimum of 4.
  • It remains centered on the screen no matter the number of items. Hidden pre-filled positions can be displayed so they cannot be changed by the user.
  • Behaviours

    Free positioning

  • The user can be placed in any position of the input in all states, with the exception of the Disabled or Blocked Hidden states.
  • Usual use

  • Normally the input will present some of its filled positions. These will appear disabled and the user must fill in the others, one by one.
  • The component allows the last digit entered by the user to be displayed for one second before obfuscating it.
  • Show/Hide access code

  • User can show or hide the code digits by tapping on the Action Link. Hidden pre-filled positions can be displayed so they cannot be changed by the user.
  • Accessibility

    Important information for UI

    This input must always be accompanied on the screen by a text explaining the items to be filled in. This text is not part of the input but must appear before it on the screen.

    ES: “Introduce las posiciones X,X y X de tu clave de firma. (Al introducir las posiciones el cambio de una a otra posición es automático)”

    EN: “Complete positions X, X, and X of your [detail](When entering the data, the position changes automatically)”

    This text is only necessary when using the input with positions in Blocked Filled with position indicators.

    Foo

    Tappable area

    Each position item / Link area

  • Each position is individually tapable. The user must tap each position individually to enter the digit required.
  • As the component displays an mbActionLink, it has a second tappable area.