Radio
A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.Neutral selected states
When the platform-dst-tokens-finesse feature flag is enabled, this component uses the new neutral treatment for selected states.
Installation
| Install | yarn add @atlaskit/radio |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/radio, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Additional information to be included in the |
|---|---|
| Type | { [x: string]: any; } |
| Description | The |
|---|---|
| Type | string |
| Description | You should not be accessing this prop under any circumstances.
It is provided by |
|---|---|
| Type | (payload: AnalyticsEventPayload) => UIAnalyticsEvent |
| Description | Set the field as checked. |
|---|---|
| Type | boolean |
| Description | Makes a |
|---|---|
| Type | boolean |
| Description | Marks this as an invalid field. |
|---|---|
| Type | boolean |
| Description | Marks this as a required field. |
|---|---|
| Type | boolean |
| Description | The label value for the input rendered to the DOM. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | This sets the |
|---|---|
| Type | string |
| Description |
|
|---|---|
| Type | (e: ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void |
| Description | No description. |
|---|---|
| Type | ((instance: HTMLInputElement) => void) | RefObject<HTMLInputElement> |
| Description | A
|
|---|---|
| Type | string |
| Description | Field value. |
|---|---|
| Type | string |