Material-ui: SVG material icon

Created on 21 Aug 2015  路  8Comments  路  Source: mui-org/material-ui

It's not clear in the documentation that all icons of http://google.github.io/material-design-icons/ are availabled as SVG react component.
I believe we should improve the doc.

docs

All 8 comments

I'd rather use the icon font. :wink: But it's my opinion.

Yep, it depends on the use case.
For me, SVG is supported, and I don't want to load a massive font, when I'm only using 10% of the available icons.

It's maybe worth noting that using SVG for icons will cause Chrome not to use Ganesh (Chrome's GPU accelerated compositing), so using an icon font containing only the icons you need is best for perf.

@owencm Good to know! We have a better computation speed with font with Chrome.

What about the network and memory impact.
Let's say I want to minimize the first rendering time of a page. I have 3 icons to render on my screen.
What's best between, using a font with those 3 icons or or using 3 svg react icon components?

also linked to #1459

The SVG documentation is now far better thanks to https://github.com/callemall/material-ui/pull/2695 @Zadielerick.

For convenience, the full set of google Material icons are available in Material-UI as pre-built SVG Icon components.

http://www.material-ui.com/#/components/svg-icon

Thanks @mbrookes for the new wordings too :rocket:!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sys13 picture sys13  路  3Comments

revskill10 picture revskill10  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments

finaiized picture finaiized  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments