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