Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Toolbar/ToolbarItem.d.ts

raw
1 /// <reference types="react" />
2 export declare enum ToolbarItemVariant {
3 separator = "separator",
4 pagination = "pagination",
5 label = "label",
6 'label-group' = "label-group",
7 'expand-all' = "expand-all"
8 }
9 export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
10 /** Classes applied to root element of the data toolbar item */
11 className?: string;
12 /** A type modifier which modifies spacing specifically depending on the type of item */
13 variant?: ToolbarItemVariant | 'pagination' | 'label' | 'label-group' | 'separator' | 'expand-all';
14 /** Visibility at various width breakpoints. */
15 visibility?: {
16 default?: 'hidden' | 'visible';
17 md?: 'hidden' | 'visible';
18 lg?: 'hidden' | 'visible';
19 xl?: 'hidden' | 'visible';
20 '2xl'?: 'hidden' | 'visible';
21 };
22 /** Visibility at various height breakpoints. */
23 visibilityAtHeight?: {
24 default?: 'hidden' | 'visible';
25 md?: 'hidden' | 'visible';
26 lg?: 'hidden' | 'visible';
27 xl?: 'hidden' | 'visible';
28 '2xl'?: 'hidden' | 'visible';
29 };
30 /** Applies to a child of a flex layout, and aligns that child (and any adjacent children on the other side of it) to one side of the main axis */
31 align?: {
32 default?: 'alignEnd' | 'alignStart' | 'alignCenter';
33 md?: 'alignEnd' | 'alignStart' | 'alignCenter';
34 lg?: 'alignEnd' | 'alignStart' | 'alignCenter';
35 xl?: 'alignEnd' | 'alignStart' | 'alignCenter';
36 '2xl'?: 'alignEnd' | 'alignStart' | 'alignCenter';
37 };
38 /** Vertical alignment of children */
39 alignItems?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
40 /** Vertical alignment */
41 alignSelf?: 'start' | 'center' | 'baseline' | 'default' | 'end' | 'stretch';
42 /** Sets both the column and row gap at various breakpoints. */
43 gap?: {
44 default?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
45 md?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
46 lg?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
47 xl?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
48 '2xl'?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
49 };
50 /** Sets only the column gap at various breakpoints. */
51 columnGap?: {
52 default?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl';
53 md?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl';
54 lg?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl';
55 xl?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl';
56 '2xl'?: 'columnGapNone' | 'columnGapXs' | 'columnGapSm' | 'columnGapMd' | 'columnGapLg' | 'columnGapXl' | 'columnGap_2xl' | 'columnGap_3xl' | 'columnGap_4xl';
57 };
58 /** Sets only the row gap at various breakpoints. */
59 rowGap?: {
60 default?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
61 md?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
62 lg?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
63 xl?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
64 '2xl'?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
65 };
66 /** Value to set for row wrapping at various breakpoints */
67 rowWrap?: {
68 default?: 'wrap' | 'nowrap';
69 sm?: 'wrap' | 'nowrap';
70 md?: 'wrap' | 'nowrap';
71 lg?: 'wrap' | 'nowrap';
72 xl?: 'wrap' | 'nowrap';
73 '2xl'?: 'wrap' | 'nowrap';
74 };
75 /** id for this data toolbar item */
76 id?: string;
77 /** Flag indicating if the expand-all variant is expanded or not */
78 isAllExpanded?: boolean;
79 /** Flag that modifies the toolbar item to hide overflow and respond to available space. Used for horizontal navigation. */
80 isOverflowContainer?: boolean;
81 /** Content to be rendered inside the data toolbar item */
82 children?: React.ReactNode;
83 }
84 export declare const ToolbarItem: React.FunctionComponent<ToolbarItemProps>;
85 //# sourceMappingURL=ToolbarItem.d.ts.map