UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

69 lines (68 loc) 2.56 kB
import { ChangeDetectorRef, QueryList, TemplateRef } from '@angular/core'; import { PrimeTemplate } from 'primeng/api'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "primeng/api"; /** * Tag component is used to categorize content. * @group Components */ export declare class Tag { private cd; /** * Inline style of the component. * @group Props */ get style(): { [klass: string]: any; } | null | undefined; set style(value: { [klass: string]: any; } | null | undefined); /** * Style class of the component. * @group Props */ styleClass: string | undefined; /** * Severity type of the tag. * @group Props */ severity: 'success' | 'secondary' | 'info' | 'warning' | 'danger' | 'contrast' | undefined; /** * Value to display inside the tag. * @group Props */ value: string | undefined; /** * Icon of the tag to display next to the value. * @group Props * @deprecated since 15.4.2. Use 'icon' template. */ icon: string | undefined; /** * Whether the corners of the tag are rounded. * @group Props */ rounded: boolean | undefined; templates: QueryList<PrimeTemplate> | undefined; iconTemplate: TemplateRef<any> | undefined; _style: { [klass: string]: any; } | null | undefined; ngAfterContentInit(): void; constructor(cd: ChangeDetectorRef); containerClass(): { [x: string]: boolean | "success" | "secondary" | "info" | "warning" | "danger" | "contrast"; 'p-tag p-component': boolean; 'p-tag-rounded': boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<Tag, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Tag, "p-tag", never, { "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "value": { "alias": "value"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, {}, ["templates"], ["*"], false, never>; static ngAcceptInputType_rounded: unknown; } export declare class TagModule { static ɵfac: i0.ɵɵFactoryDeclaration<TagModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<TagModule, [typeof Tag], [typeof i1.CommonModule, typeof i2.SharedModule], [typeof Tag, typeof i2.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<TagModule>; }