| 1 |
import { Component } from 'react'; |
| 2 |
import { LabelGroupProps } from '../../../components/Label'; |
| 3 |
import { TooltipPosition } from '../../../components/Tooltip'; |
| 4 |
import { OUIAProps } from '../../../helpers'; |
| 5 |
export interface ChipGroupProps extends Omit<LabelGroupProps, 'ref'>, OUIAProps { |
| 6 |
/** Content rendered inside the chip group. Should be <Chip> elements. */ |
| 7 |
children?: React.ReactNode; |
| 8 |
/** Additional classes added to the chip item */ |
| 9 |
className?: string; |
| 10 |
/** Flag for having the chip group default to expanded */ |
| 11 |
defaultIsOpen?: boolean; |
| 12 |
/** Customizable "Show Less" text string */ |
| 13 |
expandedText?: string; |
| 14 |
/** Customizable template string. Use variable "${remaining}" for the overflow chip count. */ |
| 15 |
collapsedText?: string; |
| 16 |
/** Category name text for the chip group category. If this prop is supplied the chip group with have a label and category styling applied */ |
| 17 |
categoryName?: string; |
| 18 |
/** Aria label for chip group that does not have a category name */ |
| 19 |
'aria-label'?: string; |
| 20 |
/** Set number of chips to show before overflow */ |
| 21 |
numChips?: number; |
| 22 |
/** Flag if chip group can be closed*/ |
| 23 |
isClosable?: boolean; |
| 24 |
/** Aria label for close button */ |
| 25 |
closeBtnAriaLabel?: string; |
| 26 |
/** Function that is called when clicking on the chip group close button or on an overflow chip */ |
| 27 |
onClick?: (event: React.MouseEvent) => void; |
| 28 |
/** @deprecated Function that is called when clicking on the overflow (expand/collapse) chip button */ |
| 29 |
onOverflowChipClick?: (event: React.MouseEvent) => void; |
| 30 |
/** Position of the tooltip which is displayed if the category name text is longer */ |
| 31 |
tooltipPosition?: TooltipPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end'; |
| 32 |
/** Value to overwrite the randomly generated data-ouia-component-id.*/ |
| 33 |
ouiaId?: number | string; |
| 34 |
} |
| 35 |
declare class ChipGroup extends Component<ChipGroupProps> { |
| 36 |
static displayName: string; |
| 37 |
constructor(props: ChipGroupProps); |
| 38 |
static defaultProps: ChipGroupProps; |
| 39 |
render(): import("react/jsx-runtime").JSX.Element; |
| 40 |
} |
| 41 |
export { ChipGroup }; |
| 42 |
//# sourceMappingURL=ChipGroup.d.ts.map |