0
我是新的框架,从那时起我一直在使用react-bootstrap。如何在React的Material-UI中正确使用Responsiviness?
据我所知,Material-UI不提供GRID系统,所以我为我的应用程序提供了react-flexbox-grid。但是Material-UI的组件似乎并不关注网格大小。下面是我如何使用它:
import React from 'react'
import MenuContainer from '../containers/MenuContainer.jsx'
import AppBar from 'material-ui/AppBar'
import { Grid, Row, Col } from 'react-flexbox-grid'
const IndexComponent = ({children}) => (
<Grid fluid>
<Row>
<Col xs={12} md={12} center="xs">
<AppBar
title="Comics Index"
showMenuIconButton={false}
/>
</Col>
</Row>
<Row>
<Col xs={12} md={3}>
<MenuContainer width="100%" />
{children}
</Col>
</Row>
</Grid>
)
export default IndexComponent
我的第二个问题是:如何使能在移动使用材料的UI崩溃一个导航栏?我似乎无法找到任何方向,所有Material-UI的组件看起来都不响应
如果您使用的是打字稿,他们当前没有为网格发布打字稿。 – mjwrazor