ionicons
Version:
Premium icons for Ionic.
62 lines (61 loc) • 1.59 kB
TypeScript
/**
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
*/
export declare class Icon {
private io?;
private mode;
el: HTMLElement;
private svgContent?;
private isVisible;
/**
* The color to use for the background of the item.
*/
color?: string;
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
ariaLabel?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
ios?: string;
/**
* Specifies which icon to use on `md` mode.
*/
md?: string;
/**
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
*/
flipRtl?: boolean;
/**
* Specifies which icon to use from the built-in set of icons.
*/
name?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
src?: string;
/**
* 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?: string;
/**
* The size of the icon.
* Available options are: `"small"` and `"large"`.
*/
size?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
* Default, `false`.
*/
lazy: boolean;
connectedCallback(): void;
disconnectedCallback(): void;
private waitUntilVisible;
loadIcon(): void;
private getName;
private getUrl;
render(): any;
}