import { KbqIconModule } from '@koobiq/components/icon';Selector: [kbq-icon-item]
| Name | Description |
|---|---|
@Input() big: boolean
|
|
@Input() fade: boolean
|
|
@Input('kbq-icon-item')
iconName: string
|
Name of an icon within a |
| autoColor: boolean | |
| changeDetectorRef: ChangeDetectorRef | |
| color: string | |
| colorClassName: string | current class name of color |
| destroyRef: DestroyRef | |
| elementRef: ElementRef |
|
| formField: KbqFormFieldRef | |
| hasError: boolean | |
| name: string | |
| registry: KbqIconRegistry | |
| small: boolean |
Selector: [kbq-icon-button]
| Name | Description |
|---|---|
@Input() disabled: boolean
|
Whether the button is disabled. |
@Input('kbq-icon-button')
iconName: string
|
Name of an icon within a |
@Input() small: boolean
|
|
@Input() tabindex: any
|
|
| autoColor: boolean | |
| changeDetectorRef: ChangeDetectorRef | |
| color: string | |
| colorClassName: string | current class name of color |
| destroyRef: DestroyRef | |
| elementRef: ElementRef |
|
| focusMonitor: FocusMonitor | |
| formField: KbqFormFieldRef | |
| hasError: boolean | |
| name: string | |
| registry: KbqIconRegistry |
Selector: [kbq-icon]
| Name | Description |
|---|---|
@Input() autoColor: boolean
|
|
@Input('kbq-icon')
iconName: string
|
Name of an icon within a |
@Input() small: boolean
|
|
| changeDetectorRef: ChangeDetectorRef | |
| color: string | |
| colorClassName: string | current class name of color |
| destroyRef: DestroyRef | |
| elementRef: ElementRef |
|
| formField: KbqFormFieldRef | |
| hasError: boolean | |
| name: string | |
| registry: KbqIconRegistry |
| Name | Description |
|---|---|
| namespace: string | Optional namespace to register the sprite under. |
| spriteUrl: string | URL to the SVG sprite file. Must be served as a static asset. |
| Name | Description |
|---|---|
| viewBox: string | |
| withCredentials: boolean |
Configures the icon registry to load icons from one or more SVG sprite assets.
const kbqIconsProvider(...sprites: KbqIconsConfig[]): Provider;
| Parameters | Description |
|---|---|
| sprites: KbqIconsConfig[] |
Registers a resolver function that maps icon names to SVG strings or URLs. Multiple resolvers can be registered; they are tried in registration order.
const kbqIconsResolverProvider(resolver: KbqIconResolver): Provider;
| Parameters | Description |
|---|---|
| resolver: KbqIconResolver |
Registers a name→SVG/URL dictionary as an icon resolver. Values starting with `<` are treated as inline SVG (no HTTP request). All other values are treated as URLs and fetched at runtime.
const kbqIconsDictProvider(dict: Record<string, string>): Provider;
| Parameters | Description |
|---|---|
|
dict:
Record |
A function that resolves an icon name to either an inline SVG string or a URL string. Return `null` to indicate this resolver does not handle the given name.
type KbqIconResolver = (name: string) => string | null;
const KBQ_ICONS_CONFIG: InjectionToken<KbqIconsConfig[]>;
Multi-valued injection token for icon resolver functions. Resolvers are tried in registration order; the first non-null result wins.
const KBQ_ICON_RESOLVER: InjectionToken<KbqIconResolver[]>;