Avatar
Avatar component.
Avatar, Personalization Blocks
Example:
TallStackUi::personalize() ->avatar() ->block('block', 'classes');
An option generate avatar with a svg placeholder.
An option to remove the default border.
An option to generate a UI Avatar from a model based on name property.
Generate a UI Avatar from a model based on a property different from name.
Generate a UI Avatar from a model based customizing the colors.
Interact with all other UI Avatar configuration options.
An option to use an image as avatar.
You can also set the image via x-bind:src
from AlpineJS:
<div x-data="{ image: 'https://i.pravatar.cc/300' }"> <x-avatar image x-bind:src="image" /></div>