UNPKG

angular-tabler-icons

Version:

Tabler Icons components library for your Angular applications

35 lines (34 loc) 1.33 kB
import * as i0 from "@angular/core"; /** * A component that renders Tabler icons as SVG elements. * * This component takes an icon name as input and renders the corresponding SVG icon * by injecting it into the DOM. It supports multiple icon sets through an options token * and provides warnings when icons are not found. * * @example * ```html * <tabler-icon name="user"></tabler-icon> * ``` * * @remarks * The component uses Angular's dependency injection to get ElementRef and options. * Icons are rendered using innerHTML after being retrieved from the configured icon sets. * Warning messages are logged to the console when icons are not found (unless warnings are ignored in options). */ export declare class TablerIconComponent { #private; /** * Icon name in kebab-case format. * @example * - "user" * - "heart-filled" * - "camera-off" * - "brand-github" * etc */ readonly name: import("@angular/core").InputSignal<string>; setNativeSvg: import("@angular/core").EffectRef; static ɵfac: i0.ɵɵFactoryDeclaration<TablerIconComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TablerIconComponent, "i-tabler, tabler-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>; }