/*! Strand UI | MIT License | dillingerstaffing.com */ import type { JSX } from "preact"; import { forwardRef } from "preact/compat"; import { cx } from "../../internal/index.js"; export interface SectionProps extends JSX.HTMLAttributes { /** Padding rhythm. */ variant?: "standard" | "hero" | "compact"; background?: "primary" | "elevated" | "recessed"; borderTop?: boolean; /** Element to render, e.g. "header". */ as?: keyof JSX.IntrinsicElements; } /** * Page-level content region. * * @example *
...
*/ export const Section = forwardRef( ({ variant = "standard", background = "primary", borderTop = false, as = "section", className = "", children, ...rest }, ref) => { // biome-ignore lint/suspicious/noExplicitAny: polymorphic tag const Tag = as as any; return ( {children} ); }, ); Section.displayName = "Section";