UNPKG

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