Loading Screen
Full-page loading and splash states.
Installation
bun add @xerobi/ui
import { LoadingScreen, SplashScreen } from "@xerobi/ui/loading-screen"This component is client-side. In Astro, hydrate it with a client directive.
API reference
LoadingScreen
| Prop | Type | Description |
|---|---|---|
| portal | boolean | Mount into document.body instead of in place. |
SplashScreen
| Prop | Type | Description |
|---|---|---|
| portal | boolean | |
| logo | string | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode> | Replace the pulsing logo. |