UNPKG

1.49 kBTypeScriptView Raw
1import { IconDefinition, IconPrefix } from './types';
2import * as i0 from "@angular/core";
3export declare class FaConfig {
4 /**
5 * Default prefix to use, when one is not provided with the icon name.
6 *
7 * @default 'fas'
8 */
9 defaultPrefix: IconPrefix;
10 /**
11 * Provides a fallback icon to use whilst main icon is being loaded asynchronously.
12 * When value is null, then fa-icon component will throw an error if icon input is missing.
13 * When value is not null, then the provided icon will be used as a fallback icon if icon input is missing.
14 *
15 * @default null
16 */
17 fallbackIcon: IconDefinition;
18 /**
19 * Set icons to the same fixed width.
20 *
21 * @see {@link: https://fontawesome.com/how-to-use/on-the-web/styling/fixed-width-icons}
22 * @default false
23 */
24 fixedWidth?: boolean;
25 /**
26 * Automatically add Font Awesome styles to the document when icon is rendered.
27 *
28 * For the majority of the cases the automatically added CSS is sufficient,
29 * please refer to the linked guide for more information on when to disable
30 * this feature.
31 *
32 * @see {@link: https://github.com/FortAwesome/angular-fontawesome/blob/main/docs/guide/adding-css.md}
33 * @default true
34 */
35 set autoAddCss(value: boolean);
36 get autoAddCss(): boolean;
37 private _autoAddCss;
38 static ɵfac: i0.ɵɵFactoryDeclaration<FaConfig, never>;
39 static ɵprov: i0.ɵɵInjectableDeclaration<FaConfig>;
40}