Debian Codegraph @

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

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