import AccessibilityIcon from '@mui/icons-material/Accessibility'; import type { Theme } from '@mui/material'; import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { makeStyles } from 'tss-react/mui'; import { IconButton } from '.'; const useStyles = makeStyles()((theme: Theme) => ({ root: { '&:hover': { background: theme.palette.primary.dark }, background: theme.palette.primary.light, color: theme.palette.common.white } })); export default { argTypes: { ariaLabel: { control: 'text' }, title: { control: 'text' } }, component: IconButton, title: 'Button/Icon' } as ComponentMeta; const TemplateIconButton: ComponentStory = (args) => ( ); export const PlaygroundIconButton = TemplateIconButton.bind({}); PlaygroundIconButton.args = { ariaLabel: 'aria-label', title: 'Icon' }; const CustomIconButton = (): JSX.Element => { const { classes } = useStyles(); return ( undefined} title="custom Button" > ); }; export const customIconButton = (): JSX.Element => ;