@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
38 lines (37 loc) • 1.07 kB
TypeScript
/**
* MSKCC 2021, 2024
*/
import React from 'react';
import PropTypes from 'prop-types';
export type HeaderNameProps<T = object> = {
/**
* Provide the component to use for the link
*/
as?: React.ComponentType<T>;
/**
* Props to pass to the link component
*/
linkProps?: T;
/**
* Specify the location of the logo file
*/
logoSrc?: string;
/**
* Specify the content to the right of the logo
*/
children?: React.ReactNode;
className?: string;
};
export declare function HeaderName<T extends {
className?: string;
}>({ as: LinkComponent, linkProps, logoSrc, children, className, }: HeaderNameProps<T>): JSX.Element;
export declare namespace HeaderName {
var displayName: string;
var propTypes: {
as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
className: PropTypes.Requireable<string>;
linkProps: PropTypes.Requireable<object>;
logoSrc: PropTypes.Requireable<string>;
};
}