import { forwardRef } from "react"; import type { CSSObject } from "@emotion/react"; export type StackProps = { className?: string; direction?: "column" | "row"; spacing?: number; alignItems?: CSSObject["alignItems"]; justifyContent?: CSSObject["justifyContent"]; wrap?: CSSObject["flexWrap"]; } & React.HTMLProps; export const Stack = forwardRef((props, ref) => { const { children, direction = "column", spacing = 2, alignItems, justifyContent, wrap, ...divProps } = props; return (
{children}
); });