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) 277 B
import{jsx as l}from"react/jsx-runtime";function c({width:t,height:n,color:o,loaderClass:i,dotRadius:r,...e}){let s={...e.style,width:t,height:n,"--c":o};r&&(s["--r"]=r);let a=[e.className,i].filter(Boolean).join(" ");return l("div",{...e,className:a,style:s})}export{c as a};