Components Forms
Radio group
Radio buttons, one of which is picked.
$ pyblade ui:add radio-group
Plans
Props
Written as attributes of <pb-ui.radio-group>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| name | str | "" | The name the value is posted under |
| items | list | [] | A list of {"value", "label", "description", "disabled"} |
| value | str | "" | The value picked |
| orientation | str | "vertical" | vertical or horizontal |