Debian Codegraph @

node/@patternfly/react-core/src/components/Compass/CompassNavMain.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Compass/compass';
2 import { css } from '@patternfly/react-styles';
3
4 export interface CompassNavMainProps extends React.HTMLProps<HTMLDivElement> {
5 /** Content of the nav main section (typically tabs). */
6 children: React.ReactNode;
7 /** Additional classes added to the nav main section. */
8 className?: string;
9 }
10
11 export const CompassNavMain: React.FunctionComponent<CompassNavMainProps> = ({
12 children,
13 className,
14 ...props
15 }: CompassNavMainProps) => (
16 <div className={css(styles.compassNavMain, className)} {...props}>
17 {children}
18 </div>
19 );
20
21 CompassNavMain.displayName = 'CompassNavMain';