mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add stories for UserAvatar (#12376)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { UserAvatar } from "./UserAvatar";
|
||||
|
||||
const meta: Meta<typeof UserAvatar> = {
|
||||
title: "components/UserAvatar",
|
||||
component: UserAvatar,
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof UserAvatar>;
|
||||
|
||||
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",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user