Something went wrong on our end. Please try again.
Created by: umpox
This PR:
@mdi/react
and @mdi/js
as an preferred alternative to mdi-react
.<Icon />
into <IconStyles />
and <Icon />
<IconStyles />
: Purely for alternative elements that needed the icon-inline
class previously (e.g. <div className="icon-inline" />
is still quite common)<Icon />
: Purely for SVG icons, either added by ourselves, or through the mdi-react
| @mdi/react
packages.@mdi/react
vs mdi-react
Problem: mdi-react
doesn't allow us to inject important elements that are required for accessibility (The
@mdi/react
.
The new library also:
Check out the client app preview documentation to learn more.