Avatar Group
Live Demos HubAvatar Group
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{avatars}
+{count}
HTML Source
<!--
Component: avatar-group.html
Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }" class="flex -space-x-3 overflow-hidden">
{avatars}
<span class="flex h-10 w-10 items-center justify-center rounded-full border-2 border-background bg-muted text-xs font-medium text-muted-foreground">+{count}</span>
</div>