@namespace Connected.Components
@inherits UIComponent

<div @attributes="CustomAttributes" class="@CompiledClassList">
    <CascadingValue Value="this" IsFixed="true">
        @ChildContent
    </CascadingValue>
    @if(_avatars.Count > Max)
    {
        <Avatar Class="@CompiledMaxAvatarClassList" Color="@MaxColor" Size="@MaxSize" Variant="@MaxVariant" Rounded="@MaxRounded" Square="@MaxSquare" Elevation="@MaxElevation">
            @($"+{_avatars.Count - Max}")
        </Avatar>
    }
</div>