UNPKG

1.93 kBTypeScriptView Raw
1import * as React from 'react';
2export interface ToolbarContentProps extends React.HTMLProps<HTMLDivElement> {
3 /** Classes applied to root element of the data toolbar content row */
4 className?: string;
5 /** Visibility at various breakpoints. */
6 visibility?: {
7 default?: 'hidden' | 'visible';
8 md?: 'hidden' | 'visible';
9 lg?: 'hidden' | 'visible';
10 xl?: 'hidden' | 'visible';
11 '2xl'?: 'hidden' | 'visible';
12 };
13 /** @deprecated prop misspelled */
14 visiblity?: {
15 default?: 'hidden' | 'visible';
16 md?: 'hidden' | 'visible';
17 lg?: 'hidden' | 'visible';
18 xl?: 'hidden' | 'visible';
19 '2xl'?: 'hidden' | 'visible';
20 };
21 /** Alignment at various breakpoints. */
22 alignment?: {
23 default?: 'alignRight' | 'alignLeft';
24 md?: 'alignRight' | 'alignLeft';
25 lg?: 'alignRight' | 'alignLeft';
26 xl?: 'alignRight' | 'alignLeft';
27 '2xl'?: 'alignRight' | 'alignLeft';
28 };
29 /** Content to be rendered as children of the content row */
30 children?: React.ReactNode;
31 /** Flag indicating if a data toolbar toggle group's expandable content is expanded */
32 isExpanded?: boolean;
33 /** Optional callback for clearing all filters in the toolbar */
34 clearAllFilters?: () => void;
35 /** Flag indicating that the clear all filters button should be visible */
36 showClearFiltersButton?: boolean;
37 /** Text to display in the clear all filters button */
38 clearFiltersButtonText?: string;
39 /** Id of the parent Toolbar component */
40 toolbarId?: string;
41}
42export declare class ToolbarContent extends React.Component<ToolbarContentProps> {
43 static displayName: string;
44 private expandableContentRef;
45 private chipContainerRef;
46 private static currentId;
47 static defaultProps: ToolbarContentProps;
48 render(): JSX.Element;
49}
50//# sourceMappingURL=ToolbarContent.d.ts.map
\No newline at end of file