Radio
A form control that provides a list of options which are all visible.
Installation
Install
yarn add @iag/chroma-react-ui.components
Import
import { Radio } from '@iag/chroma-react-ui.components';
Accessibility
Accessibility documentation(opens in new window)Default
Disabled
Error
Example with additional content
Alert warningHandle with care!
Overloading a Radio label is a serious accessibility issue. If unsure test, using Voiceover on Mac for example, without looking at the screen and imagine trying to comprehend/remember what each option is.
Overloading a Radio label is a serious accessibility issue. If unsure test, using Voiceover on Mac for example, without looking at the screen and imagine trying to comprehend/remember what each option is.
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
- 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
- options*IOptions[]Array of { label:string, value: string }
- valuestringThe input value