Files
react-test/docs/data/material/guides/composition/Composition.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
410 B
JavaScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import IconButton from '@mui/material/IconButton';
import Icon from '@mui/material/Icon';
function WrappedIcon(props) {
return <Icon {...props} />;
}
WrappedIcon.muiName = 'Icon';
export default function Composition() {
return (
<div>
<IconButton>
<Icon>alarm</Icon>
</IconButton>
<IconButton>
<WrappedIcon>alarm</WrappedIcon>
</IconButton>
</div>
);
}