/** * * Tag component is used to categorize content. * * [Live Demo](https://www.primereact.org/tag) * * @module tag * */ import * as React from 'react'; import { IconType, PassThroughType } from '../utils'; export declare type TagPassThroughType = PassThroughType; /** * Custom passthrough(pt) option method. */ export interface TagPassThroughMethodOptions { props: TagProps; } /** * Custom passthrough(pt) options. * @see {@link TagProps.pt} */ export interface TagPassThroughOptions { /** * Uses to pass attributes to the root's DOM element. */ root?: TagPassThroughType>; /** * Uses to pass attributes to the icon's DOM element. */ icon?: TagPassThroughType>; /** * Uses to pass attributes to the value's DOM element. */ value?: TagPassThroughType>; } /** * Defines valid properties in Tag component. In addition to these, all properties of HTMLSpanElement can be used in this component. * @group Properties */ export interface TagProps extends Omit, HTMLSpanElement>, 'ref'> { /** * Value to display inside the tag. */ value?: React.ReactNode; /** * Severity type of the tag. * @defaultValue null */ severity?: 'success' | 'info' | 'warning' | 'danger' | null | undefined; /** * Whether the corners of the tag are rounded. * @defaultValue false */ rounded?: boolean | undefined; /** * Icon of the tag to display next to the value. */ icon?: IconType | undefined; /** * Used to get the child elements of the component. * @readonly */ children?: React.ReactNode | undefined; /** * Uses to pass attributes to DOM elements inside the component. * @type {TagPassThroughOptions} */ pt?: TagPassThroughOptions; } /** * **PrimeReact - Tag** * * _Tag component is used to categorize content._ * * [Live Demo](https://www.primereact.org/tag/) * --- --- * ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png) * * @group Component */ export declare class Tag extends React.Component { /** * Used to get container element. * @return {HTMLSpanElement} Container element */ public getElement(): HTMLSpanElement; }