component AvatarGroup { outputs { overflow(payload: { sourceEvent?: Event; value: string | number | boolean | null | object; [key: string]: string | number | boolean | null | object } | string | number | boolean | null | object[]) } props { items: unknown[] = [] size: string = "md" color: string = "primary" variant: string = "solid" shape: string = "circle" layout: string = "stack" maxVisible: number = 4 columns: number = 3 borderColor: string = "" showTooltips: boolean = true overflowLabel: string = "Show remaining members" class: string = "" } state overflowOpen: boolean = false functions { shared function visibleMembers() { return items.slice(0, Number(maxVisible)) } shared function hiddenMembers() { return items.slice(Number(maxVisible)) } client function toggleOverflow() { overflowOpen = !overflowOpen output.overflow({ component: "AvatarGroup", open: overflowOpen, hiddenCount: hiddenMembers().length }) } } view {
} }