import Avatar from "../../app/components/asset/Avatar"; import { AVATAR_SHAPE_OPTIONS, AVATAR_SIZE_OPTIONS, AVATAR_VARIANT_OPTIONS, } from "../../lib/propNormalization"; export default { title: "Components/Asset/Avatar", component: Avatar, parameters: { layout: "centered", docs: { description: { component: "Rounded profile image with initials or a person mark when the image is missing or fails to load. Stack with **AvatarContainer**.", }, }, }, argTypes: { src: { control: { type: "text" }, description: "The source URL of the avatar image", }, alt: { control: { type: "text" }, description: "Alt text for accessibility", }, initials: { control: { type: "text" }, description: "Fallback initials when the image is missing or errors", }, size: { control: { type: "select" }, options: [...AVATAR_SIZE_OPTIONS], description: "The size of the avatar", }, shape: { control: { type: "select" }, options: [...AVATAR_SHAPE_OPTIONS], description: "Circle (default) or rounded square", }, variant: { control: { type: "select" }, options: [...AVATAR_VARIANT_OPTIONS], description: "Fallback chrome: filled cream or outlined yellow", }, className: { control: { type: "text" }, description: "Additional CSS classes", }, }, tags: ["autodocs"], }; export const Default = { args: { src: "assets/marketing/avatar-1.svg", alt: "User Avatar", size: "medium", }, }; export const Sizes = { args: { src: "assets/marketing/avatar-1.svg", alt: "User Avatar", }, render: (args) => (