3 ms·
Why would I use this over plain HTML/CSS? I don't understand exactly what it adds on top, if you have to write your own styles. Does it use web components?
by XCSme 6y ago
Why would I use this over plain HTML/CSS? I don't understand exactly what it adds on top, if you have to write your own styles.
Does it use web components?
- jfbrennan 6y agoNot full-blown wc, but custom HTML tags where possible (which is totally valid, very few devs realize this) and Custom Elements when js is required. M- adds a bunch of elements on top of HTML (20 last time I counted). The design philosophy is that the API should match or feel like native HTML, e.g. <m-loader loading>, <m-alert type="warn" autodismiss>, <m-row> with <m-col span="6"> nested And you def don't have to write your own styles. this example is a recreation of a Bootstrap demo page using M-: http://m-docs.org/examples/pricing http://m-docs.org/examples/pricing. Looks good for 6kb and like 1 line of custom CSS imo