@mui/material#IconButtonProps TypeScript Examples
The following examples show how to use
@mui/material#IconButtonProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BoxButton.tsx From console with GNU Affero General Public License v3.0 | 6 votes |
BoxButton = ({ classes, children, label = "", ...rest }: IBoxButton) => {
const altRest = rest as IconButtonProps;
return (
<Fragment>
<Box sx={{ display: { xs: "none", sm: "none", md: "block" } }}>
<Button {...rest} endIcon={children}>
{label}
</Button>
</Box>
<Box sx={{ display: { xs: "block", sm: "block", md: "none" } }}>
<BoxIconButton {...altRest} tooltip={label}>
{children}
</BoxIconButton>
</Box>
</Fragment>
);
}