Form components
Radio
A form control for making a single selection from a short list of options.
Usage ¶
Size ¶
With icon ¶
Component arguments ¶
Radio
¶
Argument | Type | Description |
---|---|---|
label |
str |
Required. Label for the radio button. |
id |
str |
Optional. ID of the radio button. Automatically generated if not set. |
caption |
str |
Optional. Caption for the radio button. |
icon |
str |
Optional. Name of the Material Symbol icon to show before the radio button. |
size |
str |
Optional. Size of the radio button. Can be "medium" or "large". |
block |
bool |
Optional. If true, the radio button will take the full width of its parent. |
required |
bool |
Optional. If true, the radio button will be marked as required. |
disabled |
bool |
Optional. If true, the radio button will be disabled. |
loading |
bool |
Optional. If true, the radio button will show a loading spinner. |
valid |
str |
Optional. Positive validation message to show below the radio button. |
invalid |
str |
Optional. Negative validation message to show below the radio button. |
Components ¶
Component |
File |
Source |
---|---|---|
Radio |
radio.jinja |
|
radio.css |
||
form-field.css |