PyBlade/ui
Menu⌄
DocsComposantsAvatar

Avatar

An image with a fallback for the user.

1 fichier

Installation

pyblade-ui add avatar

Utilisation

La balise <pb-ui.avatar> est disponible dans tous vos templates.

<pb-ui.avatar :src="user.photo_url" fallback="JD" />

Exemples

Groupe

Props

PropDéfaut
srcNone
alt''
fallback''

Tout autre attribut (class, id, x-on:click, hx-post…) est transmis à l'élément racine ; vos classes Tailwind l'emportent sur celles du composant.