import "./Stack.scss"; import React, { forwardRef } from "react"; import clsx from "clsx"; type StackProps = { children: React.ReactNode; gap?: number; align?: "start" | "center" | "end" | "baseline"; justifyContent?: "center" | "space-around" | "space-between"; className?: string | boolean; style?: React.CSSProperties; ref: React.RefObject; }; const RowStack = forwardRef( ( { children, gap, align, justifyContent, className, style }: StackProps, ref: React.ForwardedRef, ) => { return (
{children}
); }, ); const ColStack = forwardRef( ( { children, gap, align, justifyContent, className, style }: StackProps, ref: React.ForwardedRef, ) => { return (
{children}
); }, ); export default { Row: RowStack, Col: ColStack, };