Looking into icon.jsx we are constrained to use classes beginning with mdfi_ or mui-icon. In one of my projects, I need to use my own set of custom icons and I don't need the default ones.
I believe the reason for this is to avoid prefixing the "default" material-design icons with mdfi_, and just use the icon name after the prefix. This makes the component unusable and I'm forced to use <span>. I'm also fine with that, but a better solution would to actually use a prefix, which I'd change to md-icon.
A related issue is that the dropdown menu uses it, requiring to import the whole font just for one icon.
Looking into
icon.jsxwe are constrained to use classes beginning withmdfi_ormui-icon. In one of my projects, I need to use my own set of custom icons and I don't need the default ones.I believe the reason for this is to avoid prefixing the "default" material-design icons with
mdfi_, and just use the icon name after the prefix. This makes the component unusable and I'm forced to use<span>. I'm also fine with that, but a better solution would to actually use a prefix, which I'd change tomd-icon.A related issue is that the dropdown menu uses it, requiring to import the whole font just for one icon.