UNPKG

ionicons

Version:

Premium icons for Ionic.

59 lines (58 loc) 1.71 kB
import '../stencil.core'; export declare class Icon { private io?; el: HTMLElement; private svgContent?; private isVisible; isServer: boolean; resourcesUrl: string; doc: Document; win: any; mode?: 'ios' | 'md'; 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 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; componentWillLoad(): void; componentDidUnload(): void; waitUntilVisible(el: HTMLElement, rootMargin: string, cb: Function): void; loadIcon(): void; getUrl(): string | null; getNamedUrl(name: string): string; hostData(): { 'role': string; class: {}; }; render(): JSX.Element; } export declare function getName(name: string | undefined, mode: string | undefined, ios: string | undefined, md: string | undefined): string | null; export declare function getSrc(src: string | undefined): string | null; export declare function isValid(elm: HTMLElement): boolean;