Closed AmirHosseinKarimi closed 4 years ago
Just add the class name to the wrapper.
<Icon className='my-class-name' path={...} size={1} />
I don't see a need for this personally.
Closing this as it's not possible to know the icon name (we don't actually store it for JS/TS usage). Reference @goyney's suggestion to do this.
Like as other library the element should have a class to identify, Like as Font Awesome which use
fa
, and also should every specific element has their own icon name as a class, Like asfa-search
and the final output of svg should be like this:<svg class="mdi mdi-search [...Rest]">...
This is good idea to identify all MDI icons and also identify an specific icon.This is a feature request and do not take personal my used words (like should), My English is not good to use best words in sentence.