Back to Daisyui

Avatar

skills/daisyui/components/avatar.md

5.7.20649 B
Original Source

Avatar

Use an avatar to show a thumbnail image.

Avatar documentation

Class names

  • component: avatar, avatar-group
  • modifier: avatar-online, avatar-offline, avatar-placeholder

Syntax

html
<div class="avatar {MODIFIER}">
  <div>
    
  </div>
</div>

Rules

  • {MODIFIER} is optional. It can be one of the modifier class names.
  • Use avatar-group as a container for more than one avatar.
  • To set a custom size, use w-* and h-*.
  • To change the avatar shape, use mask classes such as mask-squircle, mask-hexagon, and mask-triangle.