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