Debian Codegraph @

node/@patternfly/react-core/src/components/ActionList/ActionListItem.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 ActionListItemProps extends React.HTMLProps<HTMLDivElement> {
5 /** Children of the action list item */
6 children?: React.ReactNode;
7 /** Additional classes added to the action list item */
8 className?: string;
9 }
10
11 export const ActionListItem: React.FunctionComponent<ActionListItemProps> = ({
12 children,
13 className,
14 ...props
15 }: ActionListItemProps) => (
16 <div className={css(`${styles.actionList}__item`, className)} {...props}>
17 {children}
18 </div>
19 );
20 ActionListItem.displayName = 'ActionListItem';