Input Group
An input with the ability to add an optional symbol and button.
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { InputGroup } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility Documentation(opens in new window)Input Group with Prefix
Can be displayed with a symbol to the left.
Input Group with Suffix
Can be displayed with a symbol to the right.
Input Group with Button
Can be displayed with a button to the right.
Input Group with Prefix and Button
Error
Disabled
Properties
Name
Description
- buttonIInputButtonButton configuration for the input group
- classNamestringAdditional CSS classes to be applied
- disabledbooleanIndicates whether the input is disabled
- errorbooleanIndicates whether there is an error with the input
- idstringHTML ID attribute of the input group
- onChange*(event: ChangeEvent<HTMLInputElement>) => voidChange event handler for the input
- optionalbooleanIndicates whether the input is optional
- placeholderstringPlaceholder text for the input
- prefixstringThe prefix value to display such as "$"
- requiredbooleanIndicates whether the input is required
- suffixstringThe suffix value to display such as "%"
- typestringThe input type, default value is "input"
- value*stringThe current value of the input