import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { PropTypes } from '@material-ui/core'; import Typography from '@material-ui/core/Typography'; import Divider from '@material-ui/core/Divider'; import Grid from '@material-ui/core/Grid'; import Container from '@material-ui/core/Container'; import CssBaseline from '@material-ui/core/CssBaseline'; import Button from './Button'; type VARIANTS = 'text' | 'outlined' | 'contained'; type SIZES = 'small' | 'medium' | 'large'; const colors: PropTypes.Color[] = [ 'default', 'inherit', 'primary', 'secondary' ]; const variants: VARIANTS[] = ['text', 'outlined', 'contained']; const sizes: SIZES[] = ['small', 'medium', 'large']; storiesOf('Inputs', module).add('Button', () => ( Based on Material Button component - Show all props {colors.map((color: PropTypes.Color) => ( Button {color} {variants.map((variant: VARIANTS) => ( {sizes.map((size: SIZES) => ( ))} {sizes.map((size: SIZES) => ( ))} {sizes.map((size: SIZES) => ( ))} ))} ))} ));