radio-group
Radio groups are used to group multiple radios so they function as a single form control.
Usage
radio-group(label="Select an option" name="options" value="A") radio(value="A") Option A radio(value="B") Option BOrientation
Use orientation to switch between horizontal and vertical layouts.
radio-group(orientation="horizontal") radio(value="A") A radio(value="B") BAttributes
| Name | Type | Default | Description |
|---|---|---|---|
label | string | - | Accessible label. |
name | string | - | Name attribute for form submission. |
value | string | - | Currently selected value. |
orientation | horizontal | vertical | vertical | Layout direction. |
size | small | medium | large | medium | Size for all contained radios. |
required | boolean | false | Marks as required. |