/** * * Breadcrumb provides contextual information about page hierarchy. * * [Live Demo](https://www.primereact.org/breadcrumb/) * * @module breadcrumb * */ import * as React from 'react'; import { MenuItem } from '../menuitem'; import { IconType, PassThroughType } from '../utils/utils'; export declare type BreadCrumbPassThroughType = PassThroughType; /** * Custom passthrough(pt) option method. */ export interface BreadCrumbPassThroughMethodOptions { props: BreadCrumbProps; } /** * Custom passthrough(pt) options. * @see {@link BreadCrumbProps.pt} */ export interface BreadCrumbPassThroughOptions { /** * Uses to pass attributes to the root's DOM element. */ root?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the list's DOM element. */ menu?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the list item's DOM element. */ menuitem?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the action's DOM element. */ action?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the icon's DOM element. */ icon?: BreadCrumbPassThroughType | React.HTMLAttributes>; /** * Uses to pass attributes to the label's DOM element. */ label?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the separator's DOM element. */ separator?: BreadCrumbPassThroughType>; /** * Uses to pass attributes to the separator icon's DOM element. */ separatorIcon?: BreadCrumbPassThroughType | React.HTMLAttributes>; } /** * Defines valid properties in BreadCrumb component. In addition to these, all properties of HTMLElement can be used in this component. * @group Properties */ export interface BreadCrumbProps extends Omit, HTMLElement>, 'ref'> { /** * An array of menuitems. */ model?: MenuItem[] | undefined; /** * MenuItem configuration for the home icon. */ home?: MenuItem | undefined; /** * Icon of the separator. */ separatorIcon?: 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 {BreadCrumbPassThroughOptions} */ pt?: BreadCrumbPassThroughOptions; } /** * **PrimeReact - BreadCrumb** * * _Breadcrumb provides contextual information about page hierarchy._ * * [Live Demo](https://www.primereact.org/breadcrumb/) * --- --- * ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png) * * @group Component */ export declare class BreadCrumb extends React.Component { /** * Used to get container element. * @return {HTMLElement} Container element */ public getElement(): HTMLElement; }