Components Actions
Toggle group
Toggles of which one is on, or several with multiple.
$ pyblade ui:add toggle-group
Alignment
Outline, several at once
Props
Written as attributes of <pb-ui.toggle-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 they are posted under |
| items | list | [] | A list of {"value", "label", "icon"} |
| value | str | "" | The value of the toggle that starts on |
| multiple | bool | False | Whether several can be on: checkboxes rather than radio buttons |
| variant | str | "default" | default or outline |
| size | str | "md" | sm, md or lg |