Debian Codegraph @

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

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