首页 > 解决方案 > 如何将material-ui抽屉分为header、main和Footer部分?

问题描述

我使用材质 UI 抽屉,并希望将其分为 3 个部分:

所以我使用这个伪代码:

return (
        <Wrapper>
            <Drawer variant="permanent" anchor="right">                
                Header
            </Drawer>
            <Drawer variant="permanent" anchor="right">                
                Main
            </Drawer>
            <Drawer variant="permanent" anchor="right">
                Footer
            </Drawer>
        </Wrapper>
    );

最后,我想要抽屉如下: https ://material-app.bootlab.io

标签: reactjsmaterial-ui

解决方案


推荐阅读