Closed jadelmir closed 6 years ago
You can find an example with material-ui-icons here : https://github.com/stephane-monnot/resume/blob/master/src/components/ResumeWorkAndEducationBlock/ResumeWorkAndEducationBlock.js
import WorkIcon from 'material-ui-icons/Work';
...
<VerticalTimelineElement
...
icon={<WorkIcon />}
iconStyle={{background: '#2196f3', color: '#fff'}}
...
>
...
</VerticalTimelineElement>
...
what is the right way to add an Icon?
It looks like the icon prop requires an icon element, either from '@material-ui/icons/' or for example from FontAwesome like this: icon={<i className='fa fa-map'> </i>}
or any other react or html component, another example here. Hope this helps.
what is the right way to add an Icon?