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