import * as React from "react"; import {cn} from "@/lib/utilities"; import styles from "./aspect-ratio.module.css"; /** * Props for the {@link AspectRatio} component. */ export interface AspectRatioProps extends React.HTMLAttributes { /** Aspect ratio applied to the wrapper element. @default 1 */ ratio?: number | string; } /** * Preserves a predictable width-to-height ratio for arbitrary content. * * @remarks * - Pure CSS component (no Base UI primitive) * - Renders a `
` element * - Styling via CSS Modules with `--ac-*` custom properties * * @example * ```tsx * Media * ``` * * @see {@link AspectRatioProps} for available props */ const AspectRatio = React.forwardRef( ({className, ratio = 1, style, ...props}: Readonly, ref): React.JSX.Element => (
), ); AspectRatio.displayName = "AspectRatio"; export {AspectRatio};