Debian Codegraph @

node/@patternfly/react-core/src/components/Card/CardActions.tsx

raw
1 import { css } from '@patternfly/react-styles';
2 import styles from '@patternfly/react-styles/css/components/Card/card';
3
4 export interface CardActionsProps extends React.HTMLProps<HTMLDivElement> {
5 /** Content rendered inside the card action */
6 children?: React.ReactNode;
7 /** Additional classes added to the action */
8 className?: string;
9 /** Flag indicating that the actions have no offset */
10 hasNoOffset?: boolean;
11 }
12
13 export const CardActions: React.FunctionComponent<CardActionsProps> = ({
14 children,
15 className,
16 hasNoOffset = false,
17 ...props
18 }: CardActionsProps) => (
19 <div className={css(styles.cardActions, hasNoOffset && styles.modifiers.noOffset, className)} {...props}>
20 {children}
21 </div>
22 );
23 CardActions.displayName = 'CardActions';