import type { Meta, StoryObj } from '@storybook/react'; import { IconButton } from './IconButton'; import DeleteIcon from '@mui/icons-material/Delete'; import SettingsIcon from '@mui/icons-material/Settings'; import SearchIcon from '@mui/icons-material/Search'; import CloseIcon from '@mui/icons-material/Close'; const meta: Meta = { title: 'Actions/IconButton', component: IconButton, argTypes: { size: { control: 'select', options: ['small', 'medium'], }, }, }; export default meta; type Story = StoryObj; export const Search: Story = { args: { label: 'Поиск', children: , }, }; export const Close: Story = { args: { label: 'Закрыть', children: , }, }; export const Delete: Story = { args: { label: 'Удалить', children: , }, }; export const Settings: Story = { args: { label: 'Настройки', children: , }, }; export const Small: Story = { args: { size: 'small', label: 'Поиск', children: , }, }; export const AllSizes: Story = { render: () => (
), }; export const AllExamples: Story = { render: () => (
), };