1.

Can I Build Or Use Individual Mdl Components (e.g A Button)?

Answer»

For V1 of MDL we are focused on the use-case of folks who are likely to need a few DIFFERENT components on their page and will want to INCLUDE most of the MDL library. This means that support and DOCS AROUND just plucking single components on their own is minimal.

That said, if you need to generate a build using just a single (or smaller number of) components, you will need to use Gulp with our Sass build. You can comment out those components you don’t need in material-design-lite.scss, comment out the scripts you don’t need in the Gulpfile and then run gulp to create your build.

For V1 of MDL we are focused on the use-case of folks who are likely to need a few different components on their page and will want to include most of the MDL library. This means that support and docs around just plucking single components on their own is minimal.

That said, if you need to generate a build using just a single (or smaller number of) components, you will need to use Gulp with our Sass build. You can comment out those components you don’t need in material-design-lite.scss, comment out the scripts you don’t need in the Gulpfile and then run gulp to create your build.



Discussion

No Comment Found