UNPKG

react18-loaders-lite

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