components
Input Password
v.1.0.0 | SaturnField that allows entering and displaying password.
Component
Play with the component with our playground.
Anatomy
Name | Description |
---|---|
1 Required | Indicates the information requested from the user. |
2 Required | Opens a tooltip component. |
3 Required | width height |
4 Required | The error icon is used to alert the user about an error. |
5 Required | Classic help text to give some more idea or condition about what is requested. It aligns to the left side. |
6 Required | The text inside the field comes in two versions: it is empty state text that is replaced by user information later. |
7 Required | Hidden text will be shown with bullets. |
8 | The input can contain an icon to show or hide the password entered by the user. |
9 | Helps the user understand the information that is requested. It can be hidded when the input is empty, in order to avoid confussion to the user |
States
Default emptyA default state communicates an interactive component or element.
Default filledThe component with user information already entered.
Active emptyIf we click or tap on the input, which will enter an active state allowing us to edit the placeholder information.
Active filledIf we click or tap on the input, which will enter an active state allowing us to edit the placeholder information.
Error emptyThe error state communicates that something is not right. In the case of input, it can usually be due to formatting errors or that the field is empty and must be completed.
Error filledThe error state communicates that something is not right. In the case of input, it can usually be due to formatting errors or that the field is empty and must be completed.
Keyboard focus emptyWhen the user looks for the focus through the keyboard it will put the input in this state, so they can start typing.
Keyboard focus filledWhen the user looks for the focus through the keyboard it will put the input in this state, so that they can start typing.
Disabled emptyThe input is not active and does not contain information.
Disabled filled / Disabled filled with related infoIn this case the input is not active but contains information that the user has filled in previously or at another time.
Options
Hidden passwordBy default, the input keeps the information entered by the user hidden to preserve their privacy and security.
Visible passwordThere is an option to display the password entered by the user.
Layout
Flexible width and text growthThe component is flexible, being able to adapt to any width of grid or device that is needed. The help text can grow in a liquid way adapting to their containers.
Horizontal groupingYou can associate other elements to the input horizontally leaving 16px of separation like it shows in the input with action. If they are elements not directly associated to the input you must use the grid.
Behaviour
Show passwordThe asterisk only appears with mandatory information. When the input is optional, this mark will be hidden and the optional prompt will appear.
Do's and dont's
Do’s
Input text can show more than one line in label, placeholder or help text.
Caution
Be carefull about using long labels in order to correctly display the requested information, as it can make the message difficult to understand.