Debian Codegraph @

node/@patternfly/react-core/src/components/Masthead/MastheadBrand.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Masthead/masthead';
2 import { css } from '@patternfly/react-styles';
3
4 export interface MastheadBrandProps extends React.DetailedHTMLProps<React.HTMLProps<HTMLDivElement>, HTMLDivElement> {
5 /** Content rendered inside of the masthead brand. */
6 children?: React.ReactNode;
7 /** Additional classes added to the masthead brand. */
8 className?: string;
9 }
10
11 export const MastheadBrand: React.FunctionComponent<MastheadBrandProps> = ({
12 children,
13 className,
14 ...props
15 }: MastheadBrandProps) => (
16 <div className={css(styles.mastheadBrand, className)} {...props}>
17 {children}
18 </div>
19 );
20 MastheadBrand.displayName = 'MastheadBrand';