react18-loaders-lite
Version:
A comprehensive library that unleashes the full potential of React 18 server components, providing customizable loading animation components alongside a fullscreen loader container. Designed to seamlessly integrate with React and Next.js.
2 lines (1 loc) • 876 B
JavaScript
;var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var f=(r,o)=>{for(var s in o)i(r,s,{get:o[s],enumerable:!0})},v=(r,o,s,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of u(o))!_.call(r,t)&&t!==s&&i(r,t,{get:()=>o[t],enumerable:!(e=g(o,t))||e.enumerable});return r};var P=r=>v(i({},"__esModule",{value:!0}),r);var h={};f(h,{Dots2:()=>b});module.exports=P(h);var l=require("react/jsx-runtime");function d({width:r,height:o,color:s,loaderClass:e,dotRadius:t,...a}){let n={...a.style,width:r,height:o,"--c":s};t&&(n["--r"]=t);let m=[a.className,e].filter(Boolean).join(" ");return(0,l.jsx)("div",{...a,className:m,style:n})}var c={loader:"dots2__loader",anim:"dots2__anim"};function b(r){return(0,l.jsx)(d,{...r,loaderClass:c.loader})}0&&(module.exports={Dots2});