component story directory

This commit is contained in:
Vivian Phung 2024-05-14 13:08:10 -04:00 committed by Vivian Phung
parent 327ac62186
commit 928958131c
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react';
import { Avatar, AvatarVariants } from 'components/shared/Avatar';
import { avatars, avatarsFallback } from '../pages/components/renders/avatar';
import { avatars, avatarsFallback } from 'pages/components/renders/avatar';
const avatarSizes: AvatarVariants['size'][] = [18, 20, 24, 28, 32, 36, 40, 44];
const avatarVariants: AvatarVariants['type'][] = ['gray', 'orange', 'blue'];

View File

@ -7,7 +7,7 @@ import {
renderButtons,
renderDisabledButtons,
renderLinks,
} from '../pages/components/renders/button';
} from 'pages/components/renders/button';
const meta: Meta<typeof Button> = {
title: 'Components/Button',
@ -100,7 +100,9 @@ export const ButtonAll: Story = {
render: () => (
<div className="flex gap-5 flex-col items-center">
{/* Button */}
<h1 className="text-2xl font-bold items-center justify-between">Button</h1>
<h1 className="text-2xl font-bold items-center justify-between">
Button
</h1>
<div className="flex flex-col gap-10">
{renderButtons()}
{renderButtonIcons()}

View File

@ -1,11 +1,12 @@
import { Meta, StoryObj } from '@storybook/react';
import Page from '../pages/components';
import Page from 'pages/components';
const meta: Meta<typeof Page> = {
component: Page,
title: 'Components/All',
};
export default meta;
type Story = StoryObj<typeof Page>;