UNPKG

ionicons

Version:

Premium icons for Ionic.

147 lines (144 loc) • 5.2 kB
/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; export namespace Components { interface IonIcon { /** * The color to use for the background of the item. */ "color"?: string; /** * Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. */ "flipRtl"?: boolean; /** * 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. */ "icon"?: any; /** * Specifies which icon to use on `ios` mode. */ "ios"?: string; /** * If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. * @default false */ "lazy": boolean; /** * Specifies which icon to use on `md` mode. */ "md"?: string; /** * The mode determines which platform styles to use. * @default getIonMode() */ "mode": string; /** * Specifies which icon to use from the built-in set of icons. */ "name"?: string; /** * When `true`, SVG content, including SVG `data:` URLs, is checked before it renders. SVGs with `<script>` elements, attributes that start with `on` (like `onclick`), `javascript:` URLs, or non-SVG elements aren't rendered, and `<foreignObject>` elements are removed. Only set this to `false` for SVG content from a trusted source. * @default true */ "sanitize": boolean; /** * The size of the icon. Available options are: `"small"` and `"large"`. */ "size"?: string; /** * Specifies the exact `src` of an SVG file to use. */ "src"?: string; } } declare global { interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement { } var HTMLIonIconElement: { prototype: HTMLIonIconElement; new (): HTMLIonIconElement; }; interface HTMLElementTagNameMap { "ion-icon": HTMLIonIconElement; } } declare namespace LocalJSX { interface IonIcon { /** * The color to use for the background of the item. */ "color"?: string; /** * Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. */ "flipRtl"?: boolean; /** * 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. */ "icon"?: any; /** * Specifies which icon to use on `ios` mode. */ "ios"?: string; /** * If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. * @default false */ "lazy"?: boolean; /** * Specifies which icon to use on `md` mode. */ "md"?: string; /** * The mode determines which platform styles to use. * @default getIonMode() */ "mode"?: string; /** * Specifies which icon to use from the built-in set of icons. */ "name"?: string; /** * When `true`, SVG content, including SVG `data:` URLs, is checked before it renders. SVGs with `<script>` elements, attributes that start with `on` (like `onclick`), `javascript:` URLs, or non-SVG elements aren't rendered, and `<foreignObject>` elements are removed. Only set this to `false` for SVG content from a trusted source. * @default true */ "sanitize"?: boolean; /** * The size of the icon. Available options are: `"small"` and `"large"`. */ "size"?: string; /** * Specifies the exact `src` of an SVG file to use. */ "src"?: string; } interface IonIconAttributes { "mode": string; "color": string; "ios": string; "md": string; "flipRtl": boolean; "name": string; "src": string; "icon": string; "size": string; "lazy": boolean; "sanitize": boolean; } interface IntrinsicElements { "ion-icon": Omit<IonIcon, keyof IonIconAttributes> & { [K in keyof IonIcon & keyof IonIconAttributes]?: IonIcon[K] } & { [K in keyof IonIcon & keyof IonIconAttributes as `attr:${K}`]?: IonIconAttributes[K] } & { [K in keyof IonIcon & keyof IonIconAttributes as `prop:${K}`]?: IonIcon[K] }; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "ion-icon": LocalJSX.IntrinsicElements["ion-icon"] & JSXBase.HTMLAttributes<HTMLIonIconElement>; } } }