We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8000f commit 92fe723Copy full SHA for 92fe723
site/src/components/GroupAvatar/GroupAvatar.stories.tsx
@@ -1,15 +1,17 @@
1
-import { Story } from "@storybook/react";
2
-import { GroupAvatar, GroupAvatarProps } from "./GroupAvatar";
+import { GroupAvatar } from "./GroupAvatar";
+import type { Meta, StoryObj } from "@storybook/react";
3
4
-export default {
+const meta: Meta<typeof GroupAvatar> = {
5
title: "components/GroupAvatar",
6
component: GroupAvatar,
7
};
8
9
-const Template: Story<GroupAvatarProps> = (args) => <GroupAvatar {...args} />;
+export default meta;
10
+type Story = StoryObj<typeof GroupAvatar>;
11
-export const Example = Template.bind({});
12
-Example.args = {
13
- name: "My Group",
14
- avatarURL: "",
+export const Example: Story = {
+ args: {
+ name: "My Group",
15
+ avatarURL: "",
16
+ },
17
0 commit comments