Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Compass/CompassMainHeader.d.ts

raw
1 /// <reference types="react" />
2 import { PanelProps } from '../Panel';
3 /** The wrapper component for header content in the main Compass area. When building out a custom implementation,
4 * you should ensure any content within the main header is rendered inside a Panel, PanelMain, PanelMainBody stack and main header content wrappers.
5 */
6 export interface CompassMainHeaderProps extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
7 /** Custom main header content. To opt into a default styling, use the title and toolbar props instead. */
8 children?: React.ReactNode;
9 /** Additional classes added to the main header */
10 className?: string;
11 /** Styled title. If title or toolbar is provided, the children will be ignored. */
12 title?: React.ReactNode;
13 /** Styled toolbar. If title or toolbar is provided, the children will be ignored. */
14 toolbar?: React.ReactNode;
15 /** Additional props passed to the Panel that wraps the main header content when using the title or toolbar props. When using the
16 * children prop, you should pass your own Panel.
17 */
18 panelProps?: Omit<PanelProps, 'children'>;
19 }
20 export declare const CompassMainHeader: React.FunctionComponent<CompassMainHeaderProps>;
21 //# sourceMappingURL=CompassMainHeader.d.ts.map