Radio
Get started with the radio element to let users choose a single option from multiple options available.
The radio element is commonly used to allow the user to choose one from multiple options available. This element is also a part of form-control
.
Basic Radio #
Use this basic example of a radio element in a checked and unchecked state.
Radio Sizes #
There must be size options. Because size matters.
Color Schemes #
As usual, just use the scheme-{color}
class to the check-control
element.
Helper Text #
Show additional explanation such as hint, link, etc.
Vertical Options #
You can align the radios vertically by using a wrapper element and applying the flex flex-col
classes.
Horizontal Options #
You can align the radios horizontally by using a wrapper element and applying the flex
class.
Disabled State #
Follow this examples to apply the disabled option.
Valid States #
Show feedback to users, usually right after performing validation.