mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 28 forks source link

[@ukic/react]: Review use of MUI icons in React components #431

Open jd239 opened 1 year ago

jd239 commented 1 year ago

What is the purpose of the work?

At the moment, SlottedSVG is the preferred way to import Material Icons (from the @mdi/js package) into ICDS components. However, a review is required to experiment with slotting MUI icons (Material Icons as React-wrapped SVG Icons) in different ways and making styling updates where relevant.

// Example
<div slot='icon'>
     <HomeIcon />
</div>

Below is a list of components which use icons:

Why do we need it?

Adding flexibility to use MUI Icons with ICDS components.

MI6-255 commented 3 months ago

Include the fix if needed in this work