UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

31 lines 1.9 kB
import { Component, RefObject } from 'react'; import { PickOptional } from '../../helpers/typeUtils'; export interface ToolbarLabelGroupContentProps extends React.HTMLProps<HTMLDivElement> { /** Classes applied to root element of the data toolbar content row */ className?: string; /** Flag indicating if a data toolbar toggle group's expandable content is expanded */ isExpanded?: boolean; /** Label group content reference for passing to data toolbar children */ labelGroupContentRef?: RefObject<any>; /** optional callback for clearing all filters in the toolbar */ clearAllFilters?: () => void; /** Flag indicating that the clear all filters button should be visible */ showClearFiltersButton: boolean; /** Text to display in the clear all filters button */ clearFiltersButtonText?: string; /** Total number of filters currently being applied across all ToolbarFilter components */ numberOfFilters: number; /** Text to display in the total number of applied filters ToolbarFilter */ numberOfFiltersText?: (numberOfFilters: number) => string; /** The breakpoint at which the listed filters in label groups are collapsed down to a summary */ collapseListedFiltersBreakpoint?: 'all' | 'md' | 'lg' | 'xl' | '2xl'; /** Custom additional content appended to the generated labels. To maintain spacing and styling, each node should be a ToolbarItem or ToolbarGroup. This property will remove the built in "Clear all filters" button. */ customLabelGroupContent?: React.ReactNode; } declare class ToolbarLabelGroupContent extends Component<ToolbarLabelGroupContentProps> { static displayName: string; static defaultProps: PickOptional<ToolbarLabelGroupContentProps>; render(): import("react/jsx-runtime").JSX.Element; } export { ToolbarLabelGroupContent }; //# sourceMappingURL=ToolbarLabelGroupContent.d.ts.map