WEB-1344 chore: Add storybook (#4490)
* Add storybbok integration for UI package * Exclude stories from tailwind config * Update gitignore * chore: disable lint stage --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
c0961586a3
commit
e99a7accec
11 changed files with 5320 additions and 649 deletions
19
packages/ui/src/avatar/avatar.stories.tsx
Normal file
19
packages/ui/src/avatar/avatar.stories.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { fn } from "@storybook/test";
|
||||
import { Avatar } from "./avatar";
|
||||
|
||||
const meta: Meta<typeof Avatar> = {
|
||||
title: "Avatar",
|
||||
component: Avatar,
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof Avatar>;
|
||||
|
||||
export const Default: Story = {
|
||||
args: { name: "John Doe" },
|
||||
};
|
||||
|
||||
export const Large: Story = {
|
||||
args: { name: "John Doe" },
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue