From 4f0b885c302edabce1bade15ed217e09deea0a9f Mon Sep 17 00:00:00 2001 From: Kayla Washburn-Love Date: Fri, 1 Mar 2024 10:50:17 -0700 Subject: [PATCH] chore: add stories for `UserAvatar` (#12376) --- .../UserAvatar/UserAvatar.stories.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 site/src/components/UserAvatar/UserAvatar.stories.tsx diff --git a/site/src/components/UserAvatar/UserAvatar.stories.tsx b/site/src/components/UserAvatar/UserAvatar.stories.tsx new file mode 100644 index 0000000000..41ad9ca87b --- /dev/null +++ b/site/src/components/UserAvatar/UserAvatar.stories.tsx @@ -0,0 +1,24 @@ +import type { Meta, StoryObj } from "@storybook/react"; +import { UserAvatar } from "./UserAvatar"; + +const meta: Meta = { + title: "components/UserAvatar", + component: UserAvatar, +}; + +export default meta; +type Story = StoryObj; + +export const Jon: Story = { + args: { + username: "sreya", + avatarURL: "https://github.com/sreya.png", + }, +}; + +export const Jonjon: Story = { + args: { + username: "ジョンジョン", + avatarURL: "https://github.com/sreya.png", + }, +};