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