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! ⚡

21 lines (20 loc) • 864 B
"use client"; import { jsx } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import loading_overlay_module from "./loading-overlay.module.js"; import { Spinner } from "./spinner.js"; import * as __rspack_external_react from "react"; const LoadingOverlay = /*#__PURE__*/ __rspack_external_react.forwardRef(({ visible = true, blur = false, className, children, ...props }, ref)=>{ if (!visible) return null; return /*#__PURE__*/ jsx("div", { ref: ref, className: cn(loading_overlay_module.overlay, blur && loading_overlay_module.blur, className), ...props, children: children ?? /*#__PURE__*/ jsx(Spinner, { className: loading_overlay_module.spinner }) }); }); LoadingOverlay.displayName = "LoadingOverlay"; export { LoadingOverlay }; //# sourceMappingURL=loading-overlay.js.map