import { TemplateRef } from "@angular/core"; import { PassThrough, PassThroughOption } from "primeng/api"; import { CSSProperties } from "primeng/types/shared"; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Chip.pt} * @group Interface */ export interface ChipPassThroughOptions { /** * Used to pass attributes to the host's DOM element. */ host?: PassThroughOption; /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the image's DOM element. */ image?: PassThroughOption; /** * Used to pass attributes to the icon's DOM element. */ icon?: PassThroughOption; /** * Used to pass attributes to the label's DOM element. */ label?: PassThroughOption; /** * Used to pass attributes to the remove icon's DOM element. */ removeIcon?: PassThroughOption; } /** * Defines valid pass-through options in Chip component. * @see {@link ChipPassThroughOptions} * * @template I Type of instance. */ export type ChipPassThrough = PassThrough>; /** * Defines valid templates in Chip. * @group Templates */ export interface ChipTemplates { /** * Custom content template. */ content(): TemplateRef; /** * Custom remove icon template. */ removeicon(): TemplateRef; } export interface ChipProps { label?: string; icon?: string | undefined; image?: string | undefined; alt?: string | undefined; style?: CSSProperties; styleClass?: string | undefined; removable?: boolean | undefined; removeIcon?: string | undefined; }