MCPcopy
hub / github.com/ionic-team/ionicons / IonIcon

Interface IonIcon

src/components.d.ts:9–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';
8export namespace Components {
9 interface IonIcon {
10 /**
11 * The color to use for the background of the item.
12 */
13 color?: string;
14 /**
15 * Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
16 */
17 flipRtl?: boolean;
18 /**
19 * A 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.
20 */
21 icon?: any;
22 /**
23 * Specifies which icon to use on `ios` mode.
24 */
25 ios?: string;
26 /**
27 * If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
28 * @default false
29 */
30 lazy: boolean;
31 /**
32 * Specifies which icon to use on `md` mode.
33 */
34 md?: string;
35 /**
36 * The mode determines which platform styles to use.
37 * @default getIonMode()
38 */
39 mode: string;
40 /**
41 * Specifies which icon to use from the built-in set of icons.
42 */
43 name?: string;
44 /**
45 * When 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`.
46 * @default true
47 */
48 sanitize: boolean;
49 /**
50 * The size of the icon. Available options are: `"small"` and `"large"`.
51 */
52 size?: string;
53 /**
54 * Specifies the exact `src` of an SVG file to use.
55 */
56 src?: string;
57 }
58}
59declare global {
60 interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…