UNPKG

4.19 kBTypeScriptView Raw
1/* eslint-disable */
2/* tslint:disable */
3/**
4 * This is an autogenerated file created by the Stencil compiler.
5 * It contains typing information for all components that exist in this project.
6 */
7import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
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 */
29 "lazy": boolean;
30 /**
31 * Specifies which icon to use on `md` mode.
32 */
33 "md"?: string;
34 /**
35 * The mode determines which platform styles to use.
36 */
37 "mode": string;
38 /**
39 * Specifies which icon to use from the built-in set of icons.
40 */
41 "name"?: string;
42 /**
43 * 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`.
44 * @default true
45 */
46 "sanitize": boolean;
47 /**
48 * The size of the icon. Available options are: `"small"` and `"large"`.
49 */
50 "size"?: string;
51 /**
52 * Specifies the exact `src` of an SVG file to use.
53 */
54 "src"?: string;
55 }
56}
57declare global {
58 interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {
59 }
60 var HTMLIonIconElement: {
61 prototype: HTMLIonIconElement;
62 new (): HTMLIonIconElement;
63 };
64 interface HTMLElementTagNameMap {
65 "ion-icon": HTMLIonIconElement;
66 }
67}
68declare namespace LocalJSX {
69 interface IonIcon {
70 /**
71 * The color to use for the background of the item.
72 */
73 "color"?: string;
74 /**
75 * Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
76 */
77 "flipRtl"?: boolean;
78 /**
79 * 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.
80 */
81 "icon"?: any;
82 /**
83 * Specifies which icon to use on `ios` mode.
84 */
85 "ios"?: string;
86 /**
87 * If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
88 */
89 "lazy"?: boolean;
90 /**
91 * Specifies which icon to use on `md` mode.
92 */
93 "md"?: string;
94 /**
95 * The mode determines which platform styles to use.
96 */
97 "mode"?: string;
98 /**
99 * Specifies which icon to use from the built-in set of icons.
100 */
101 "name"?: string;
102 /**
103 * 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`.
104 * @default true
105 */
106 "sanitize"?: boolean;
107 /**
108 * The size of the icon. Available options are: `"small"` and `"large"`.
109 */
110 "size"?: string;
111 /**
112 * Specifies the exact `src` of an SVG file to use.
113 */
114 "src"?: string;
115 }
116 interface IntrinsicElements {
117 "ion-icon": IonIcon;
118 }
119}
120export { LocalJSX as JSX };
121declare module "@stencil/core" {
122 export namespace JSX {
123 interface IntrinsicElements {
124 "ion-icon": LocalJSX.IonIcon & JSXBase.HTMLAttributes<HTMLIonIconElement>;
125 }
126 }
127}