Components Display
Avatar
A picture of someone, with a fallback such as initials.
$ pyblade ui:add avatar
Pictures and initials
A stack
Props
Written as attributes of <pb-ui.avatar>; 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 |
|---|---|---|---|
| src | str | "" | The picture |
| alt | str | "" | |
| fallback | str | "" | Shown until the picture covers it, or if there is none |
| size | str | "md" | sm, md or lg |
| class | str | "" | Added to the classes of the component. Every other attribute is spread on it too. |
