Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
28 lines
688 B
JavaScript
28 lines
688 B
JavaScript
import IconButton from '@mui/joy/IconButton';
|
|
import FavoriteBorder from '@mui/icons-material/FavoriteBorder';
|
|
import JoyVariablesDemo from 'docs/src/modules/components/JoyVariablesDemo';
|
|
|
|
export default function IconButtonVariables() {
|
|
return (
|
|
<JoyVariablesDemo
|
|
componentName="IconButton"
|
|
renderCode={(formattedSx) =>
|
|
`<IconButton${formattedSx ? `${formattedSx}>` : '\n>'}
|
|
<FavoriteBorder />
|
|
</IconButton>`
|
|
}
|
|
data={[
|
|
{
|
|
var: '--IconButton-size',
|
|
defaultValue: '36px',
|
|
},
|
|
]}
|
|
renderDemo={(sx) => (
|
|
<IconButton sx={sx}>
|
|
<FavoriteBorder />
|
|
</IconButton>
|
|
)}
|
|
/>
|
|
);
|
|
}
|