Skip to main content

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
  • className
    stringAdditional CSS classes to be applied
  • disabled
    booleanBoolean indicating if the input is disabled
  • error
    booleanBoolean indicating if the input is in an error state
  • valid
    booleanBoolean indicating if the input is in a valid state
  • id
    stringHTML id attribute for the Input
  • name
    stringHTML name attribute for the input
  • onChange*
    (event: ChangeEvent<HTMLInputElement>) => voidFunction to be called when the input value changes
  • value
    stringThe input value
  • size
    SizeThe size of the input (1, 2, 3, or 4)

CSS Variables