Debian Codegraph @

node/@patternfly/react-core/src/components/ActionList/ActionListGroup.tsx

raw
1 import { css } from '@patternfly/react-styles';
2 import styles from '@patternfly/react-styles/css/components/ActionList/action-list';
3
4 export interface ActionListGroupProps extends React.HTMLProps<HTMLDivElement> {
5 /** Children of the action list group */
6 children?: React.ReactNode;
7 /** Additional classes added to the action list group */
8 className?: string;
9 /** Flag indicating the action list group contains multiple icons and item padding should be removed */
10 isIconGroup?: boolean;
11 }
12
13 export const ActionListGroup: React.FunctionComponent<ActionListGroupProps> = ({
14 children,
15 className,
16 isIconGroup,
17 ...props
18 }: ActionListGroupProps) => (
19 <div className={css(styles.actionListGroup, isIconGroup && styles.modifiers.icons, className)} {...props}>
20 {children}
21 </div>
22 );
23 ActionListGroup.displayName = 'ActionListGroup';