fleet/frontend/components/Avatar/Avatar.stories.tsx
Gabriel Hernandez d027036985
add figma to storybook and a couple new stories (#11521)
add figma addon to storybook that allows us to link figma designed to
our storybook
2023-05-09 16:53:43 +01:00

32 lines
641 B
TypeScript

import { Meta, StoryObj } from "@storybook/react";
import { DEFAULT_GRAVATAR_LINK } from "utilities/constants";
import Avatar from ".";
const meta: Meta<typeof Avatar> = {
component: Avatar,
title: "Components/Avatar",
args: {
user: { gravatar_url: DEFAULT_GRAVATAR_LINK },
},
parameters: {
design: {
type: "figma",
url:
"https://www.figma.com/file/qbjRu8jf01BzEfdcge1dgu/Fleet-style-guide-2022-(WIP)?node-id=210-11078",
},
},
};
export default meta;
type Story = StoryObj<typeof Avatar>;
export const Default: Story = {};
export const Small: Story = {
args: {
size: "small",
},
};