Password
Creates an password input with a hide/show functionality to allow users to see the value they have entered.
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { Password } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility documentation(opens in new window)Default
Disabled
Error
Valid
Sizes
Set form fields to a predefined width
Properties
Name
Description
- classNamestringAdditional CSS classes to be applied
- disabledbooleanBoolean indicating if the input is disabled
- errorbooleanBoolean indicating if the input is in an error state
- validbooleanBoolean indicating if the input is in a valid state
- idstringHTML id attribute for the Input
- namestringHTML name attribute for the input
- onChange*(event: ChangeEvent<HTMLInputElement>) => voidFunction to be called when the input value changes
- valuestringThe input value
- sizeSizeThe size of the input (1, 2, 3, or 4)