import { Meta, StoryFn, StoryObj } from '@storybook/react' import React from 'react' import * as FeatherIcons from 'react-feather' import { Box, Label } from '../index.js' import { Icon } from './icon.js' const icons = Object.keys(FeatherIcons).filter((name) => name !== 'default') export const Default: StoryObj = {} export const Icons: StoryFn = () => ( {icons.map((key) => ( ))} ) const meta: Meta = { title: 'DesignSystem/Atoms/Icon', component: Icon, args: { icon: icons[0], size: 48, rounded: false, spin: false, }, argTypes: { icon: { description: 'CamelCased name of an icon from https://www.npmjs.com/package/react-feather', control: { type: 'select' }, options: icons, }, size: { control: { type: 'number', min: 16, max: 48, step: 4 } }, color: { control: { type: 'color' } }, bg: { control: { type: 'color' } }, rounded: { control: { type: 'boolean' } }, spin: { control: { type: 'boolean' } }, }, } export default meta