import * as React from 'react'; import styles from '@patternfly/react-styles/css/layouts/Stack/stack'; import { css } from '@patternfly/react-styles'; export interface StackItemProps extends React.HTMLProps { /** Flag indicating if this stack layout item should fill the available vertical space. */ isFilled?: boolean; /** Additional classes added to the stack layout item. */ children?: React.ReactNode; /** Content rendered inside the stack layout item. */ className?: string; /** Sets the base component to render. Defaults to div. */ component?: React.ReactNode; } export const StackItem: React.FunctionComponent = ({ isFilled = false, className = '', children = null, component = 'div', ...props }: StackItemProps) => { const Component = component as any; return ( {children} ); }; StackItem.displayName = 'StackItem';