0 - Material-Ui Intro
0 - Material-Ui Intro
<Typography variant="h1"
component="h2" gutterBottom>
h1. Heading
</Typography>
<Typography variant="h2"
noWrap gutterBottom>
h2. Heading
</Typography>
https://material-ui.com/api/typography
Tooltip
● Tooltips display informative text when users hover over, focus on, or tap
an element.
● Usually a description of the element’s function.
https://material-ui.com/components/tooltips/
Material Grid Component
● The grid creates visual consistency between layouts
● It uses CSS’s Flexible Box module
● Two types of layout:
○ Containers
<Grid container>
○ Items <Grid item>
Grid Item Contents
</Grid>
</Grid>
2 column layouts
Imagine your layout as
consisting of 12
columns, and then fit
your content columns
inside these imaginary
columns.
Grid
Container
Grid
Item
Grid Spacing
Material Design margins and columns follow an 8px square baseline grid.
The spacing property is an integer between 0 and 10 inclusive.
By default, the spacing between two grid items follows a linear function:
output(spacing) = spacing * 8px
Gid items with multiple breakpoints (i.e. full width on xs and half on sm+).
○ https://www.internetingishard.com/html-and-css/flexbox/