29 | {children} 30 |
31 | ); 32 | }); 33 | 34 | Text.displayName = 'Text'; 35 | -------------------------------------------------------------------------------- /packages/ui/src/Button.stories.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Button, ButtonVariants } from './Button'; 3 | import { withKnobs, select, boolean } from '@storybook/addon-knobs'; 4 | import { action } from '@storybook/addon-actions'; 5 | 6 | export default { 7 | title: 'components|Buttons', 8 | component: Button, 9 | decorators: [withKnobs], 10 | }; 11 | 12 | const buttonVariantOptions: any = { 13 | Primary: 'primary', 14 | }; 15 | 16 | export const primary = () => { 17 | const variant = select