/*! Strand UI | MIT License | dillingerstaffing.com */ import type { JSX } from "preact"; import { forwardRef } from "preact/compat"; import { cx } from "../../internal/index.js"; export interface ContainerProps extends JSX.HTMLAttributes { /** Max-width tier. */ size?: "narrow" | "default" | "wide" | "full"; /** Element to render, e.g. "main". */ as?: keyof JSX.IntrinsicElements; } /** * Centered max-width wrapper. * * @example *

Prose

*/ export const Container = forwardRef( ({ size = "default", as = "div", className = "", children, ...rest }, ref) => { // biome-ignore lint/suspicious/noExplicitAny: polymorphic tag const Tag = as as any; return ( {children} ); }, ); Container.displayName = "Container";