react18-loaders
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 f=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var h=(s,e)=>{for(var r in e)i(s,r,{get:e[r],enumerable:!0})},P=(s,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of _(e))!g.call(s,t)&&t!==r&&i(s,t,{get:()=>e[t],enumerable:!(o=f(e,t))||o.enumerable});return s};var u=s=>P(i({},"__esModule",{value:!0}),s);var b={};h(b,{Dots1:()=>B});module.exports=u(b);var l={loader:"dots1__loader",anim:"dots1__anim"};var c=require("react/jsx-runtime");function d({width:s,height:e,color:r,loaderClass:o,dotRadius:t,...a}){let n={...a.style,width:s,height:e,"--c":r};t&&(n["--r"]=t);let m=[a.className,o].filter(Boolean).join(" ");return(0,c.jsx)("div",{...a,className:m,style:n})}function B(s){return(0,c.jsx)(d,{...s,loaderClass:l.loader})}0&&(module.exports={Dots1});