import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks'; import { action } from "@storybook/addon-actions"; import { Dummy, Type } from "./Dummy.tsx";
<Meta title="Components/Dummy" component={Dummy} argTypes={{ onClick: {action: 'Dummy component clicked'}, type: {control: {type: 'select', options: ['primary', 'secondary']}}, size: {control: { type: 'select', options: [12, 24, 48] }} }} />
The dummy component is a little bit dumb, but that's why it exists.
Use this playground to test the dummy component
{(args) => Coucou} Size 12 Size 24 Size 48 Primary Secondary