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