1 | import * as React from 'react';
|
2 | import { TooltipPosition } from '../Tooltip';
|
3 | import { OUIAProps } from '../../helpers';
|
4 | export interface ChipProps extends React.HTMLProps<HTMLDivElement>, OUIAProps {
|
5 |
|
6 | children?: React.ReactNode;
|
7 |
|
8 | closeBtnAriaLabel?: string;
|
9 |
|
10 | className?: string;
|
11 |
|
12 | isOverflowChip?: boolean;
|
13 |
|
14 | isReadOnly?: boolean;
|
15 |
|
16 | onClick?: (event: React.MouseEvent) => void;
|
17 |
|
18 | component?: React.ReactNode;
|
19 |
|
20 | tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
21 | }
|
22 | interface ChipState {
|
23 | isTooltipVisible: boolean;
|
24 | ouiaStateId: string;
|
25 | }
|
26 | export declare class Chip extends React.Component<ChipProps, ChipState> {
|
27 | static displayName: string;
|
28 | constructor(props: ChipProps);
|
29 | span: React.RefObject<HTMLSpanElement>;
|
30 | static defaultProps: ChipProps;
|
31 | componentDidMount(): void;
|
32 | renderOverflowChip: () => JSX.Element;
|
33 | renderInnerChip(id: string): JSX.Element;
|
34 | renderChip: (randomId: string) => JSX.Element;
|
35 | render(): JSX.Element;
|
36 | }
|
37 | export {};
|
38 |
|
\ | No newline at end of file |