material-components-vue
Version:
Material Design components for Vue.js
61 lines (44 loc) • 1.54 kB
Markdown
"4">
<span> Cell 1 </span>
</m-layout-grid-cell>
<m-layout-grid-cell :span="4">
<span> Cell 2 </span>
</m-layout-grid-cell>
</m-layout-grid-inner>
</m-layout-grid>
```
| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| align | String | - | false | alignment of grid: 'left' or 'right' |
| fixedColumnWidth | Boolean | - | false | fixed column width |
| Slot | Description |
|------|-------------|
| default | should be LayoutInnerGrid |
| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| span | Number | - | false | cell span from 1 to 12 |
| spanDesktop | Number | - | false | cell span from 1 to 12 on desktop |
| spanTablet | Number | - | false | cell span from 1 to 12 on tablet |
| span Phone | Number | - | false | cell span from 1 to 12 on phone |
| order | Number | - | false | cell order from 1 to 12 |
| align | String | - | false | cell alignment could be 'top', 'middle' and 'bottom' |
| Slot | Description |
|------|-------------|
| default | content of GridCell |
| Slot | Description |
|------|-------------|
| default | should be GridCells |
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-layout-grid
```html
<m-layout-grid>
<m-layout-grid-inner>
<m-layout-grid-cell :span=