import Avatar from "../../app/components/asset/Avatar"; export default { title: "Components/Asset/Avatar", component: Avatar, parameters: { layout: "centered", docs: { description: { component: "Rounded profile image primitive; stacks with **`AvatarContainer`**. Fuller DS-driven Avatar behavior is **[CR-58](https://linear.app/community-rule/issue/CR-58)**.", }, }, }, argTypes: { src: { control: { type: "text" }, description: "The source URL of the avatar image", }, alt: { control: { type: "text" }, description: "Alt text for accessibility", }, size: { control: { type: "select" }, options: ["small", "medium", "large", "xlarge"], description: "The size of the avatar", }, className: { control: { type: "text" }, description: "Additional CSS classes", }, }, tags: ["autodocs"], }; export const Default = { args: { src: "assets/Avatar_1.png", alt: "User Avatar", size: "medium", }, }; export const Sizes = { args: { src: "assets/Avatar_1.png", alt: "User Avatar", }, render: (args) => (
), parameters: { docs: { description: { story: "Different size variants available for the avatar component.", }, }, }, }; export const DifferentAvatars = { args: { size: "large", }, render: (args) => (
), parameters: { docs: { description: { story: "Different avatar images available in the project.", }, }, }, }; export const AllSizesWithDifferentAvatars = { args: {}, render: () => (

Small Size

Medium Size

Large Size

XLarge Size

), parameters: { docs: { description: { story: "Complete overview of all avatar sizes with different user images.", }, }, }, };