import React from 'react' import { Meta } from '@storybook/react' import { ButtonIcon } from './ButtonIcon' import { Box } from '../Box/Box' import { IconSolidCheveronDown } from '../icons' export default { title: 'Components/ButtonIcon', component: ButtonIcon, } as Meta export const AllVariants = () => { const variant = ['primary', 'secondary'] as const const shape = ['square', 'thin'] as const const emphasis = ['high', 'medium', 'low'] as const const size = ['medium', 'small', 'xSmall', 'minimal'] as const return ( {variant.map(($kind, idx) => ( {emphasis.map(($emphasis, jdx) => ( {size.map(($size, kdx) => ( <> {shape.map(($shape, ldx) => ( } size={$size} kind={$kind} emphasis={$emphasis} shape={$shape} key={`${idx}-${jdx}-${kdx}-${ldx}`} /> ))} } size={$size} kind={$kind} emphasis={$emphasis} key={`${idx}-${jdx}-${kdx}-disabled`} /> ))} ))} ))} ) }