mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
10 lines
336 B
TypeScript
10 lines
336 B
TypeScript
import React from 'react';
|
|
import { Meta } from '@storybook/react';
|
|
import { Button } from './button';
|
|
|
|
export default { component: Button, title: 'Examples / Button' } as Meta;
|
|
|
|
export const WithArgs = (args: any) => <Button {...args} />;
|
|
WithArgs.args = { label: 'With args' };
|
|
export const Basic = () => <Button label="Click me" />;
|