import React from 'react'; import styled from '@emotion/styled'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import AlertIcon from 'components/Icon/icons/alert/alert'; import CloseIcon from 'components/Icon/icons/content/close'; import StarIcon from 'components/Icon/icons/toggle/star'; import StarFilledIcon from 'components/Icon/icons/toggle/starFilled'; import Button, { ButtonWithComponent, IconButton, CloseButton } from './index'; import BaseApp from '../BaseApp'; const Container = styled.div` display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; `; const CustomComponent = ButtonWithComponent('a'); storiesOf('Components/Button', module) .add('Solid', () => (

Small

Default

Medium

Large

Extra Large

Block






Loading

Disabled

With Icon

With Icon before the label

With Icon and loading

WithComponent

{'Button with tag'}
)) .add('Subtle', () => (

Small

Default

Medium

Large

Extra Large

Block






Loading

Disabled

With Icon

With Icon and loading

With Icon before the label

WithComponent

{'Button with
tag'}
)) .add('IconButton', () => (

Round (Default)

Square

Deprecated: CloseButton

));