import React from "react"; import { Avatar as Component } from "./"; import { styled, theme } from "../theme"; import type { StoryObj, Meta } from "@storybook/react"; export default { title: "Avatar", component: Component, argTypes: { size: { options: [ "025", "050", "075", "087", "100", "125", "150", "175", "200", "225", "250", "275", "300", "350", "400", "450", "500", ], control: { type: "select" }, }, }, } as Meta; const defaultArgs = { size: 200, css: { backgroundColor: theme.colors.subtle, }, }; const Container = styled("div", { textAlign: "center", }); const Label = styled("h3", { color: theme.colors.primary, margin: 0, textAlign: "center", }); export const Avatar: StoryObj = { render: (args) => ( An avatar is an atomic component that represents an individual’s identity through a circular photo. ), args: { ...defaultArgs }, }; export const Responsive = { render: (args) => { return ( An avatar is an atomic component that represents an individual’s identity through a circular photo. ); }, }; const Row = styled("div", { display: "flex", gap: theme.space["100"], }); export const StyledOverride: StoryObj = { render: (args) => { const StyledComponent = styled(Component, { boxShadow: theme.shadows["300"], "&.override": { width: "150px", height: "150px", }, }); return ( An avatar is an atomic component that represents an individual’s identity through a circular photo. An avatar is an atomic component that represents an individual’s identity through a circular photo. ); }, }; export const TokenForSize: StoryObj = { render: (args) => { return ( An avatar is an atomic component that represents an individual’s identity through a circular photo. An avatar is an atomic component that represents an individual’s identity through a circular photo. An avatar is an atomic component that represents an individual’s identity through a circular photo. ); }, };