Examples
With description
Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS or GCP.
With description and body
Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS or GCP.This is where custom content goes.
Props
Radio
Name | Type | Default | Description |
---|---|---|---|
idrequired | string | Id of the radio. | |
namerequired | string | Name for group of radios | |
aria-label | string | Aria label for the radio. | |
body | React.ReactNode | Body of the radio. | |
checked | boolean | Flag to show if the radio is checked. | |
className | string | '' | Additional classes added to the radio. |
description | React.ReactNode | Description text of the radio. | |
isChecked | boolean | Flag to show if the radio is checked. | |
isDisabled | boolean | false | Flag to show if the radio is disabled. |
isLabelBeforeButton | boolean | Flag to show if the radio label is shown before the radio button. | |
isLabelWrapped | boolean | Flag to show if the radio label is wrapped on small screen. | |
isValid | boolean | true | Flag to show if the radio selection is valid or invalid. |
label | React.ReactNode | Label text of the radio. | |
onChange | (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void | () => {} | A callback for when the radio selection changes. |
CSS variables
.pf-c-radio | --pf-c-radio--GridGap | 0.25rem 0.5rem | |
.pf-c-radio | --pf-c-radio__label--disabled--Color | #6a6e73 | |
.pf-c-radio | --pf-c-radio__label--Color | #151515 | |
.pf-c-radio | --pf-c-radio__label--FontWeight | 400 | |
.pf-c-radio | --pf-c-radio__label--FontSize | 1rem | |
.pf-c-radio | --pf-c-radio__label--LineHeight | 1.3 | |
.pf-c-radio | --pf-c-radio__input--Height | 1rem | |
.pf-c-radio | --pf-c-radio__input--MarginTop | calc(((1rem * 1.3) - 1rem) / 2) | |
.pf-c-radio | --pf-c-radio__input--first-child--MarginLeft | 0.0625rem | |
.pf-c-radio | --pf-c-radio__input--last-child--MarginRight | 0.0625rem | |
.pf-c-radio | --pf-c-radio__description--FontSize | 0.875rem | |
.pf-c-radio | --pf-c-radio__description--Color | #6a6e73 | |
.pf-c-radio | --pf-c-radio__body--MarginTop | 0.5rem | |
.pf-c-radio.pf-m-standalone | --pf-c-radio--GridGap | 0 | |
.pf-c-radio.pf-m-standalone | --pf-c-radio__input--Height | auto | |
.pf-c-radio.pf-m-standalone | --pf-c-radio__input--MarginTop | 0 | |
.pf-c-radio__label:disabled | --pf-c-radio__label--Color | #6a6e73 | |
View source on GitHub