
components
Input Password
v.1.0.0 | SaturnUsage
The name of the object of tokens to style the inputPassword component is INPUT_PASSWORD_STYLES.
You can not change the name of the object of tokens.
inputPassword component has one way to modify the styles:
- Variant: modify the styles of the InputPassword.
The structure of the INPUT_PASSWORD_STYLES object is:
Variants
Variants can modify the styles for each state of the inputPassword. The states are: InputState;
For each inner state the next tokens can be used:
- InputBasicStateProps;
- inputVariant?: string; (It should go a valid variant from the Input component)
1234567
const INPUT_PASSWORD_STYLES = { [VARIANT]: { [STATE]: InputBasicStateProps & { inputVariant?: string; } } }
Example
inputPassword theme object example:
1234567
const INPUT_PASSWORD_STYLES = { [VARIANT]: { [STATE]: { inputVariant: 'DEFAULT', } } }