UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

17 lines (16 loc) • 641 B
import { jsx } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import aspect_ratio_module from "./aspect-ratio.module.js"; import * as __rspack_external_react from "react"; const AspectRatio = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ratio = 1, style, ...props }, ref)=>/*#__PURE__*/ jsx("div", { ref: ref, className: cn(aspect_ratio_module.root, className), style: { ...style, aspectRatio: String(ratio) }, ...props })); AspectRatio.displayName = "AspectRatio"; export { AspectRatio }; //# sourceMappingURL=aspect-ratio.js.map