PyBlade/ui
Menu⌄
DocsComponentsAvatar

Avatar

An image with a fallback for the user.

1 file

Installation

pyblade-ui add avatar

Usage

The tag <pb-ui.avatar> is available in all your templates.

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

Examples

Group

Props

PropDefault
srcNone
alt''
fallback''

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.