import AvatarContainer from "../app/components/AvatarContainer"; import Avatar from "../app/components/Avatar"; export default { title: "Components/AvatarContainer", component: AvatarContainer, parameters: { layout: "centered", docs: { description: { component: "A container component that groups multiple avatars together with overlapping spacing. Useful for displaying multiple users or team members in a compact format.", }, }, }, argTypes: { size: { control: { type: "select" }, options: ["small", "medium", "large", "xlarge"], description: "The size of the avatar container and its children", }, className: { control: { type: "text" }, description: "Additional CSS classes", }, }, tags: ["autodocs"], }; export const Default = { args: { size: "medium", }, render: (args) => ( ), }; export const Sizes = { args: {}, render: () => (

Small Size

Medium Size

Large Size

XLarge Size

), parameters: { docs: { description: { story: "Different size variants of the avatar container with overlapping spacing.", }, }, }, }; export const DifferentGroupSizes = { args: {}, render: () => (

2 Users

3 Users

4 Users

5 Users

), parameters: { docs: { description: { story: "Avatar containers with different numbers of users to show the overlapping effect.", }, }, }, }; export const InContext = { args: {}, render: () => (

Avatar Container in Context

Team Members

3 team members

Project Contributors

4 contributors

Small Team

2 members
), parameters: { docs: { description: { story: "Avatar containers used in realistic contexts to show how they integrate with other UI elements.", }, }, }, };