import React from "react";
import UI from "../ui";
import type { BoxProps } from "./box.types";
// Re-export types for convenience
export type { BoxProps } from "./box.types";
/**
* Box - A fundamental container primitive for spacing and sizing control.
*
* The Box component is the foundational layout primitive in fpkit, providing a flexible,
* semantic container with comprehensive control over spacing (padding/margin), sizing,
* and visual appearance. It uses utility classes generated from props, ensuring consistent
* styling across the application.
*
* ## Key Features
* - **Unified Spacing Scale**: Fluid responsive spacing using CSS clamp()
* - **Logical Properties**: `padding-inline`/`padding-block` for i18n support
* - **Polymorphic Rendering**: Render as any semantic HTML element via `as` prop
* - **CSS Custom Properties**: All values customizable for theming
* - **Type-Safe**: Full TypeScript support with IntelliSense
*
* ## Accessibility
* - Uses semantic HTML elements by default
* - Supports ARIA attributes via spread props
* - Encourages semantic elements via `as` prop
* - All props forwarded to underlying element
*
* ## Use Cases
* - Container with padding/margin
* - Centered layouts with max-width
* - Card-like components
* - Spacing between sections
* - Semantic landmarks
*
* @example
* // Basic container with padding
*
*
Content
*
*
* @example
* // Centered container with max width
*
* Centered content
*
*
* @example
* // Card-like box with radius
*
*