Form
Radio buttons
This component is the component for a form field with multiple radio elements.
Elements
This component is composed of two elements:
radios
the wrapper- its child
radio
elements
- its child
You can wrap it inside an input
component (see input components) when used as a form field. The radios
class is associated with input__control
.
input
the wrapperinput__label
field labelinput__notice
optional notice (which can also be used to display error messages)input__control radios
the component
Properties
Add classes to the wrapper class to change the style of the component.
Direction
Change the direction of the component.
class="radios"
Default
class="radios radios--portrait"
Disabled
When used as a form field, you can add the input--disabled
to the wrapper like you would for an input component to disable the whole field.
class="input select input--disabled"
Required
When used as a form field, you can add the input--required
to the wrapper like you would for an input component.
class="input select input--required"