Debian Codegraph @

node/@patternfly/react-core/src/components/Drawer/DrawerMain.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Drawer/drawer';
2 import { css } from '@patternfly/react-styles';
3
4 export interface DrawerMainProps extends React.HTMLProps<HTMLDivElement> {
5 /** Additional classes added to the drawer main wrapper. */
6 className?: string;
7 /** Content to be rendered in the drawer main wrapper*/
8 children?: React.ReactNode;
9 }
10
11 export const DrawerMain: React.FunctionComponent<DrawerMainProps> = ({
12 className = '',
13 children,
14 ...props
15 }: DrawerMainProps) => (
16 <div className={css(styles.drawerMain, className)} {...props}>
17 {children}
18 </div>
19 );
20 DrawerMain.displayName = 'DrawerMain';