Debian Codegraph @

node/@patternfly/react-core/dist/js/deprecated/components/Chip/Chip.d.ts

raw
1 import { Component } from 'react';
2 import { TooltipPosition } from '../../../components/Tooltip';
3 import { LabelProps } from '../../../components/Label';
4 import { OUIAProps } from '../../../helpers';
5 export interface ChipProps extends LabelProps, OUIAProps {
6 /** Badge to add to the chip. The badge will be rendered after the chip text. */
7 badge?: React.ReactNode;
8 /** Content rendered inside the chip text */
9 children?: React.ReactNode;
10 /** Aria Label for close button */
11 closeBtnAriaLabel?: string;
12 /** Additional classes added to the chip item */
13 className?: string;
14 /** Flag indicating if the chip is an overflow chip */
15 isOverflowChip?: boolean;
16 /** Flag indicating if chip is read only */
17 isReadOnly?: boolean;
18 /** Function that is called when clicking on the chip close button */
19 onClick?: (event: React.MouseEvent) => void;
20 /** @deprecated Component that will be used for chip. It is recommended that <button> or <li> are used when the chip is an overflow chip. */
21 component?: React.ReactNode;
22 /** Position of the tooltip which is displayed if text is longer */
23 tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
24 /** Css property expressed in percentage or any css unit that overrides the default value of the max-width of the chip's text */
25 textMaxWidth?: string;
26 /** Value to overwrite the randomly generated data-ouia-component-id.*/
27 ouiaId?: number | string;
28 }
29 declare class Chip extends Component<ChipProps> {
30 static displayName: string;
31 constructor(props: ChipProps);
32 static defaultProps: ChipProps;
33 render(): import("react/jsx-runtime").JSX.Element;
34 }
35 export { Chip };
36 //# sourceMappingURL=Chip.d.ts.map