Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.26 KB

File metadata and controls

55 lines (43 loc) · 1.26 KB

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] }} }} />

Dummy

The dummy component is a little bit dumb, but that's why it exists.

Playground

Use this playground to test the dummy component

{(args) => Coucou}

Variation on size

Size 12 Size 24 Size 48

Variation on type

Primary Secondary