Debian Codegraph @

node/@patternfly/react-table/src/components/Table/ExpandableRowContent.tsx

raw
1 import { css } from '@patternfly/react-styles';
2 import styles from '@patternfly/react-styles/css/components/Table/table';
3
4 interface ExpandableRowContentProps {
5 /** Content rendered inside the expandable row. */
6 children?: React.ReactNode;
7 /** Flag indicating whether the expandable row content has no background. This should be passed in when
8 * the parent Td is passed the noPadding prop.
9 */
10 hasNoBackground?: boolean;
11 }
12
13 export const ExpandableRowContent: React.FunctionComponent<ExpandableRowContentProps> = ({
14 children = null as React.ReactNode,
15 hasNoBackground,
16 ...props
17 }: ExpandableRowContentProps) => (
18 <div {...props} className={css(styles.tableExpandableRowContent, hasNoBackground && styles.modifiers.noBackground)}>
19 {children}
20 </div>
21 );
22 ExpandableRowContent.displayName = 'ExpandableRowContent';