import React from "react";
import UI from "../ui";
import type { StackProps } from "./stack.types";
// Re-export types for convenience
export type { StackProps } from "./stack.types";
/**
* Stack - A simplified layout primitive for vertical or horizontal spacing between children.
*
* The Stack component provides an easy-to-use flexbox-based layout for creating vertical or
* horizontal arrangements with consistent gap spacing. It's designed to be simpler than the
* full Flex component, focusing on the most common stacking patterns.
*
* ## Key Features
* - **Simple API**: Fewer props than Flex for common use cases
* - **Fluid Spacing**: Responsive gap using CSS clamp()
* - **Flexbox-Based**: Reliable cross-browser layout
* - **Polymorphic**: Render as any semantic HTML element
* - **Type-Safe**: Full TypeScript support
*
* ## Accessibility
* - Uses semantic HTML elements when appropriate via `as` prop
* - Supports all ARIA attributes via spread props
* - Proper focus order maintained (visual order matches DOM order)
*
* ## Use Cases
* - Vertical spacing between content sections
* - Horizontal button groups
* - Navigation menus
* - Form layouts
* - Centered content (vertical/horizontal)
*
* @example
* // Vertical stack with medium gap (default)
*
*