Use icon variants (filled, outline, sharp)
mainIonicons provides three visual variants for most icons to match different platform design languages:
- Filled: The default variant (use the base name).
- Outline: Use the
-outlinesuffix. - Sharp: Use the
-sharpsuffix.
Note: Logo icons do not have outline or sharp variants.
<ion-icon name="heart"></ion-icon> <!--filled-->
<ion-icon name="heart-outline"></ion-icon> <!--outline-->
<ion-icon name="heart-sharp"></ion-icon> <!--sharp-->