import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Icon } from '.';
export default {
title: 'UI/Icon',
component: Icon,
args: {
size: Icon.SIZE_MEDIUM,
},
argTypes: {
size: {
options: Object.values(Icon.SIZES),
control: { type: 'select' },
},
glyph: {
options: Object.values(Icon.ICONS),
control: { type: 'select' },
},
},
} as Meta;
const Template: Story = (args: any) => ;
export const Standard = Template.bind({});
Standard.args = {
glyph: Icon.ICONS.ARROW,
};
export const CustomSize = Template.bind({});
CustomSize.args = {
glyph: Icon.ICONS.ARROW,
size: Icon.SIZE_LARGE,
};
export const All = ({ size }: Pick, 'size'>) => (
<>
{Object.values(Icon.ICONS).map((glyph) => (
{glyph}
))}
>
);