Skip to content

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

PropTypeDescription
portalbooleanMount into document.body instead of in place.

SplashScreen

PropTypeDescription
portalboolean
logostring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>Replace the pulsing logo.

Search documentation

Search pages, components and blocks.