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