feat: add basic webui
This commit is contained in:
35
apps/storybook/stories/avatar.stories.tsx
Normal file
35
apps/storybook/stories/avatar.stories.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import {
|
||||
Avatar,
|
||||
AvatarFallback,
|
||||
AvatarImage,
|
||||
} from '@konobangu/design-system/components/ui/avatar';
|
||||
|
||||
/**
|
||||
* An image element with a fallback for representing the user.
|
||||
*/
|
||||
const meta = {
|
||||
title: 'ui/Avatar',
|
||||
component: Avatar,
|
||||
tags: ['autodocs'],
|
||||
argTypes: {},
|
||||
render: (args) => (
|
||||
<Avatar {...args}>
|
||||
<AvatarImage src="https://github.com/shadcn.png" />
|
||||
<AvatarFallback>CN</AvatarFallback>
|
||||
</Avatar>
|
||||
),
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies Meta<typeof Avatar>;
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
/**
|
||||
* The default form of the avatar.
|
||||
*/
|
||||
export const Default: Story = {};
|
||||
Reference in New Issue
Block a user