import React from 'react' import { Box, BoxProps } from '../Box/Box' type Props = React.PropsWithChildren & { as?: BoxProps['as'] align?: BoxProps['alignItems'] direction?: BoxProps['flexDirection'] flex?: BoxProps['flex'] gap?: BoxProps['gap'] justify?: BoxProps['justifyContent'] wrap?: boolean | BoxProps['flexWrap'] cssClass?: BoxProps['cssClass'] } & BoxProps export const Stack: React.FC = ({ as, align, children, direction, flex, gap, justify, wrap, width, ...props }) => { if (typeof wrap === 'boolean') { wrap = wrap ? 'wrap' : undefined } return ( {children} ) } Stack.defaultProps = { as: 'div', gap: '16', direction: 'column', }