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) 354 B
import{a as n}from"./chunk-FQFHKJZP.mjs";var e={container:"loader-container__container",loading:"loader-container__loading"};import{useRGS as i}from"r18gs";import{jsx as c}from"react/jsx-runtime";function _({children:r,loading:o}){let[t]=i(n,!1),a=o!=null?o:t;return c("div",{className:[e.container,a?e.loading:""].join(" "),children:r})}export{_ as a};