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