UNPKG

2.51 kBTypeScriptView Raw
1import * as React from 'react';
2export declare enum ToolbarItemVariant {
3 separator = "separator",
4 'bulk-select' = "bulk-select",
5 'overflow-menu' = "overflow-menu",
6 pagination = "pagination",
7 'search-filter' = "search-filter",
8 label = "label",
9 'chip-group' = "chip-group",
10 'expand-all' = "expand-all"
11}
12export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
13 /** Classes applied to root element of the data toolbar item */
14 className?: string;
15 /** A type modifier which modifies spacing specifically depending on the type of item */
16 variant?: ToolbarItemVariant | 'bulk-select' | 'overflow-menu' | 'pagination' | 'search-filter' | 'label' | 'chip-group' | 'separator' | 'expand-all';
17 /** Visibility at various breakpoints. */
18 visibility?: {
19 default?: 'hidden' | 'visible';
20 md?: 'hidden' | 'visible';
21 lg?: 'hidden' | 'visible';
22 xl?: 'hidden' | 'visible';
23 '2xl'?: 'hidden' | 'visible';
24 };
25 /** @deprecated prop misspelled */
26 visiblity?: {
27 default?: 'hidden' | 'visible';
28 md?: 'hidden' | 'visible';
29 lg?: 'hidden' | 'visible';
30 xl?: 'hidden' | 'visible';
31 '2xl'?: 'hidden' | 'visible';
32 };
33 /** Alignment at various breakpoints. */
34 alignment?: {
35 default?: 'alignRight' | 'alignLeft';
36 md?: 'alignRight' | 'alignLeft';
37 lg?: 'alignRight' | 'alignLeft';
38 xl?: 'alignRight' | 'alignLeft';
39 '2xl'?: 'alignRight' | 'alignLeft';
40 };
41 /** Spacers at various breakpoints. */
42 spacer?: {
43 default?: 'spacerNone' | 'spacerSm' | 'spacerMd' | 'spacerLg';
44 md?: 'spacerNone' | 'spacerSm' | 'spacerMd' | 'spacerLg';
45 lg?: 'spacerNone' | 'spacerSm' | 'spacerMd' | 'spacerLg';
46 xl?: 'spacerNone' | 'spacerSm' | 'spacerMd' | 'spacerLg';
47 '2xl'?: 'spacerNone' | 'spacerSm' | 'spacerMd' | 'spacerLg';
48 };
49 /** Widths at various breakpoints. */
50 widths?: {
51 default?: string;
52 sm?: string;
53 md?: string;
54 lg?: string;
55 xl?: string;
56 '2xl'?: string;
57 };
58 /** id for this data toolbar item */
59 id?: string;
60 /** Flag indicating if the expand-all variant is expanded or not */
61 isAllExpanded?: boolean;
62 /** Content to be rendered inside the data toolbar item */
63 children?: React.ReactNode;
64}
65export declare const ToolbarItem: React.FunctionComponent<ToolbarItemProps>;
66//# sourceMappingURL=ToolbarItem.d.ts.map
\No newline at end of file