import * as React from "react"; import type { StackOwnProps, PolymorphicWithRef } from "../types"; import { StackBase } from "../base-components"; import { StackItem } from "../StackItem"; type StackProps = PolymorphicWithRef< T, StackOwnProps >; type StackElement = ( props: StackProps ) => React.ReactElement>; const StackRoot: StackElement = React.forwardRef( ( props: StackProps, innerRef: typeof props.ref ) => { const { component, ...rest } = props; return ; } ); /** * **A Stack is a layout component that arranges its children in a horizontal or vertical stack.** */ const Stack = Object.assign(StackRoot, { Item: StackItem }); export default Stack;