Loading...
Loading...
Storybook UI component development and testing. Use for component testing.
npx skill4agent add g1joshi/agent-skills storybooknpx storybook@latest init
npm run storybook// Button.stories.tsx
import type { Meta, StoryObj } from "@storybook/react";
import { Button } from "./Button";
const meta: Meta<typeof Button> = {
component: Button,
};
export default meta;
type Story = StoryObj<typeof Button>;
export const Primary: Story = {
args: {
primary: true,
label: "Button",
},
};ActionsonClickA11yInteractionsplayplaytags: ['autodocs']