Debian Codegraph @

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

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