Material design icons for React.
npm install md.icons
import * as mdi from 'md.icons'
<mdi.Check />
<mdi.ThumbUp size={20} fill="gray" />
// magically aligned to text
<button>
<mdi.ThumbUp center /> Like
</button>
Prop | Type | Default | Description |
---|---|---|---|
size |
number | string |
void |
Set width and height prop |
center |
boolean |
false |
Align icon to text, magically, see also react-inline-center |
text |
boolean |
false |
Shortcut for size="1.2em"
|
npm start