@carbon/ibm-products
Version:
Carbon for IBM Products
47 lines • 1.78 kB
TypeScript
/**
* The SimpleHeader is not public and only used internally by CreateFullPage.
*
* Component varieties:
* - Header with Breadcrumbs
* - Header with Title
* - Header with Breadcrumbs and Title
*
*
* The component will throw a warning message if neither a title or breadcrumbs are provided
* since it requires at least one of them.
* */
export function SimpleHeader({ breadcrumbs, className, title, noTrailingSlash, maxVisible, overflowAriaLabel, overflowTooltipAlign, ...rest }: {
[x: string]: any;
breadcrumbs: any;
className: any;
title: any;
noTrailingSlash?: boolean;
maxVisible: any;
overflowAriaLabel: any;
overflowTooltipAlign: any;
}): React.JSX.Element;
export namespace SimpleHeader {
namespace propTypes {
let breadcrumbs: PropTypes.Requireable<PropTypes.InferProps<{
/** breadcrumb item key */
key: PropTypes.Validator<string>;
/** breadcrumb item label */
label: PropTypes.Validator<string>;
/** breadcrumb item link */
href: PropTypes.Requireable<string>;
/** breadcrumb item title tooltip */
title: PropTypes.Requireable<string>;
/** Provide if this breadcrumb item represents the current page */
isCurrentPage: PropTypes.Requireable<boolean>;
}>[]>;
let className: PropTypes.Requireable<string>;
let maxVisible: PropTypes.Requireable<number>;
let noTrailingSlash: PropTypes.Requireable<boolean>;
let overflowAriaLabel: PropTypes.Requireable<string>;
let overflowTooltipAlign: any;
let title: PropTypes.Requireable<string>;
}
}
import React from 'react';
import PropTypes from 'prop-types';
//# sourceMappingURL=SimpleHeader.d.ts.map