import React from 'react'; import { Icon } from './Icon'; import type { Meta, StoryObj } from '@storybook/react-vite'; // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction const meta = { title: 'Basic/Icon', component: Icon, tags: ['autodocs'], parameters: { layout: 'centered', }, argTypes: { size: { options: ['2xs', 'xs', 'sm', 'base', 'lg', 'xl', '2xl', '3xl'], control: { type: 'radio' }, }, }, } satisfies Meta; export default meta; type Story = StoryObj; const svgIcon = ( ); export const Default: Story = { args: { size: 'lg', children: svgIcon, }, }; export const WithCSSCustomPropertyColor: Story = { args: { size: '2xl', color: '--quanta-sapphire', children: svgIcon, }, }; export const WithHEXColor: Story = { args: { size: '3xl', color: '#aaa', children: svgIcon, }, };