Skip to content

Commit

Permalink
[docs] Improve grid demo descriptions (mui#12112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes authored and Joe Shelby committed Jul 14, 2018
1 parent fb5695e commit 4db63df
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/src/pages/layout/grid/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,22 @@ Spacing can be 8, 16, 24, 32 or 40dp wide.

{{"demo": "pages/layout/grid/SpacingGrid.js"}}

## Full-width vs Centered
## Fluid grids

**Full-width grids**: use fluid columns and breakpoints to determine when a layout needs to change.
Fluid grids use columns that scale and resize content. A fluid grid’s layout can use breakpoints to determine if the layout needs to change dramatically.

{{"demo": "pages/layout/grid/FullWidthGrid.js"}}
### Basic grid

**Centered grids**: use fixed columns and re-flow the layout when all columns (plus a defined margin) no longer fit on the screen.
The column widths apply at all breakpoints (i.e. `xs` and up).

{{"demo": "pages/layout/grid/CenteredGrid.js"}}

### Grid with breakpoints

Some columns have multiple widths defined, causing the layout to change at the defined breakpoint.

{{"demo": "pages/layout/grid/FullWidthGrid.js"}}

## Interactive

Below is an interactive demo that lets you explore the visual results of the different settings:
Expand Down

0 comments on commit 4db63df

Please sign in to comment.