<div style={{ display: 'flex' }}><IconButtonaria-label="menu button"sx={{ marginRight: '8px' }}onClick={() => console.log('clicked icon')}><MenuHamburger /></IconButton><IconButton disabled sx={{ marginRight: '8px' }}><MenuHamburger /></IconButton><IconButtoncolor="black"onClick={() => console.log('clicked icon')}size="small"sx={{ marginRight: '8px' }}><MenuDots /></IconButton><IconButtoncolor="black"onClick={() => console.log('clicked icon')}size="small"sx={{ marginRight: '8px' }}disabled><MenuDots /></IconButton><IconButton color="white" sx={{ marginRight: '8px' }}><Trophy /></IconButton><IconButton color="white" disabled><Trophy /></IconButton></div>
Prop | Type | Default | Description |
---|---|---|---|
children | node | The icon element. | |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. | |
color | 'default' | 'black' | 'white' | 'default' | The color of the component. It supports those theme colors that make sense for this component. |
data-testid | string | data-testid added to the root element of the component | |
disabled | bool | false | If true, the button will be disabled. |
disableFocusRipple | bool | false | If true, the keyboard focus ripple will be disabled. |
disableRipple | bool | If true, the ripple effect will be disabled. | |
edge | 'start' | 'end' | false | false | If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape). |
size | 'small' | 'medium' | 'medium' | The size of the button. small is equivalent to the dense button styling. |
sx | Array<func | object | bool> | func | object | The system prop that allows defining system overrides as well as additional CSS styles. |
see Button