Components Navigation
Accordion
Sections that open and close, with <details>.
$ pyblade ui:add accordion
One at a time
Items that share a name open one at a time.
Cards
Props
Written as attributes of <pb-ui.accordion>; 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 |
|---|---|---|---|
| variant | str | "default" | default or card |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |
Used with <pb-ui.accordion-item>, which pyblade ui:add accordion adds with it.