Material UI: Place a space between two Typography components

混江龙づ霸主 提交于 2020-01-03 19:17:17

问题


How do I add a space in between two Typography components and align them at the bottom?

Here's my code:

  <div style={{ display: "flex" }}>
    <Typography variant="title" color="inherit" noWrap>
      Project:
    </Typography>
    <Typography variant="body 2" color="inherit" noWrap>
      Example
    </Typography>
  </div>

It looks like this:

Working example: https://codesandbox.io/s/llqry78p29

来源:https://stackoverflow.com/questions/51053161/material-ui-place-a-space-between-two-typography-components

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!