mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
16 lines
569 B
TypeScript
16 lines
569 B
TypeScript
// import { Button } from '@storybook/react/demo';
|
|
import { storiesOf } from '@storybook/react';
|
|
import { Button } from '@storybook/react/demo'; // 这里引入你想展示的组件
|
|
import React from 'react';
|
|
import DefaultShape from './component/default-shape'
|
|
|
|
export default { title: 'Shape' };
|
|
|
|
|
|
storiesOf('Shape', module)
|
|
.add('with', () => ( // 一个 add 表示添加一个 story
|
|
<DefaultShape />
|
|
))
|
|
.add('with some emoji', () => ( // 这里是另一个 story
|
|
<span><span role="img" aria-label="so cool">😀 😎 👍 💯</span></span>
|
|
));
|