import { type CSSProperties } from 'react'; import { fn } from 'storybook/test'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { Button as ButtonComponent, DownloadIcon } from '../src/components'; const meta: Meta = { component: ButtonComponent, title: 'Forms/Button', args: { onClick: fn(), }, argTypes: { color: { control: 'select', name: '--main-bubble-color', options: [ 'var(--fr--color-sapphire-blue)', 'var(--fr--color-sea-blue)', 'var(--fr--color-vivid-cerulean)', 'var(--fr--color-medium-turquoise)', 'var(--fr--color-gainsborough)', 'white', 'blue', ], }, disabled: { control: 'boolean' }, }, }; export default meta; type Story = StoryObj; export const Button: Story = { render: ({ color, disabled, onClick }) => (
Primary
Secondary
Tertiary
), }; export const ButtonGroups: Story = { render: ({ color, disabled, onClick }) => (
One Two Three
One Two Three
One Two Three
), }; export const WithIcon: Story = { render: ({ color, disabled, onClick }) => (
Primary
Secondary
Tertiary
), };