Back to Ionicons

ion-icon

src/components/icon/readme.md

8.0.133.5 KB
Original Source

ion-icon

<!-- Auto Generated Below -->

Properties

PropertyAttributeDescriptionTypeDefault
colorcolorThe color to use for the background of the item.string | undefinedundefined
flipRtlflip-rtlSpecifies whether the icon should horizontally flip when dir is "rtl".boolean | undefinedundefined
iconiconA combination of both name and src. If a src url is detected it will set the src property. Otherwise it assumes it's a built-in named SVG and set the name property.anyundefined
iosiosSpecifies which icon to use on ios mode.string | undefinedundefined
lazylazyIf enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, false.booleanfalse
mdmdSpecifies which icon to use on md mode.string | undefinedundefined
modemodeThe mode determines which platform styles to use.stringgetIonMode()
namenameSpecifies which icon to use from the built-in set of icons.string | undefinedundefined
sanitizesanitizeWhen set to false, SVG content that is HTTP fetched will not be checked if the response SVG content has any <script> elements, or any attributes that start with on, such as onclick.booleantrue
sizesizeThe size of the icon. Available options are: "small" and "large".string | undefinedundefined
srcsrcSpecifies the exact src of an SVG file to use.string | undefinedundefined

Built with StencilJS