The password input component allows users to securely enter and manage sensitive data such as credentials or authentication codes. It behaves similarly to a standard text input but masks the content to protect the user's privacy. This component also includes functionality to toggle visibility, making it easier for users to verify their input when needed.
Password inputs are essential in authentication forms, account settings, and any interaction where users need to enter or confirm confidential information. Ensuring both usability and security is key to providing a reliable password entry experience.

- 1.Label (Optional): a descriptive text that helps users understand what information is expected in the input field. It should be clear, concise, and placed near the input for better readability.
- 2.Optional indicator (Optional): a small indicator that signals the input field is not mandatory. It helps users know they can leave the field empty without causing validation errors.
- 3.Input action (Optional): an interactive element, inside the input field that triggers the action of revealing the password.
- 4.Clear action (Optional): a small button, usually represented by an "X" icon, that allows users to clear the entered password quickly without manually deleting it.
- 5.Helper text (Optional): additional text placed below the input field that provides guidance, examples, or explanations to assist users in filling out the field correctly.
- 6.Container: the visual wrapper around the input field that provides structure, ensures accessibility, and helps differentiate the input from other UI elements.
- 7.Value: displays the selected or manually entered date in the input field, following the specified format.
Form inputs are essential UI elements that allow users to interact with digital products by entering or selecting data. Choosing the right input type and structure is key to designing efficient, user-friendly forms that support task completion and data accuracy.
A form input (also known as a form field) is used to capture user data. Common input types include text fields, date pickers, number fields, radio buttons, checkboxes, toggles, and dropdowns. Forms should always include a submission method, such as a submit button, link, or keyboard trigger, to complete the interaction.
Although input fields vary in type and purpose, they often share a common set of features:
- Placeholder: a short hint displayed inside the input field that describes its expected value or purpose.
- Size and max length: inputs can have both a visual size (width of the field) and a character limit that defines how much text can be entered.
- Prefix or suffix: some inputs include a visual element before or after the user input, like currency symbols or units, to help clarify the expected data.
- Helper text: additional information displayed below the field to guide the user in providing the correct input.
- Optional label: inputs that are not mandatory can be marked with an "Optional" tag to set clear expectations.
Most inputs can also present standard interactive or informative states:
- Disabled: this state prevents users from interacting with the field. It's typically used when a value is not applicable or editable under certain conditions or roles.
- Error: when a user enters invalid or incomplete data, the input shows an error state, often accompanied by a helpful message to guide corrections.
- Read-only: the input is visible, focusable, and hoverable, but not editable. This is ideal for fields with auto-calculated values. Unlike disabled fields, read-only inputs can still be submitted with the form and are part of the form data.
Password inputs are designed to handle sensitive information securely by masking the characters typed by the user. Unlike regular text inputs, they include specific features to enhance privacy and usability, such as the ability to toggle visibility and optionally clear the field. These inputs are commonly used for login forms, account creation, and any scenario requiring authentication data.
Password inputs can include a clear action icon, typically displayed when the field contains text. This allows users to quickly remove the entire content of the input with a single click or tap, making it easier to retype the password if necessary. This action enhances user experience, particularly when correcting mistakes or switching between input attempts.

To improve usability without compromising security, our password input include a show/hide action icon. This control allows users to reveal the password temporarily, helping prevent input errors, especially on small screens or when dealing with complex passwords. By default, passwords are hidden and masked with dots, and toggling the visibility should be a clearly labeled and accessible action.
- Never store passwords in local storage or pre-fill them without explicit user action.
- Do not rely solely on masking or toggle visibility for security — always combine with backend encryption and secure handling.
- Prevent clipboard access via double-click or right-click when appropriate, depending on the app's security level.