The Bootstrap Grid System Web Component.
Install the component using Bower:
$ bower install twbs-grid --save
Or download as ZIP.
- Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
- Import Custom Element:
<link rel="import" href="bower_components/twbs-grid/twbs-grid.html">
- Start using it!
<bs-row>
<bs-col md="8">.bs-col-md-8</bs-col>
<bs-col md="4">.bs-col-md-4</bs-col>
</bs-row>
Attribute | Options | Default | Description |
---|---|---|---|
xs |
12 |
Extra small devices Phones (<768px) | |
sm |
12 |
Small devices Tablets (≥768px) | |
md |
12 |
Medium devices Desktops (≥992px) | |
lg |
12 |
Large devices Desktops (≥1200px) | |
xspull , smpull , mdpull , lgpull |
0 |
Change the order of our built-in grid columns | |
xspush , smpush , mdpush , lgpush |
0 |
Change the order of our built-in grid columns | |
xsoffset , smoffset , mdoffset , lgoffset |
0 |
Move columns to the right |
IE 10+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Check Release list.
MIT License © Magno Valdetaro