Skip to main content

AppLoader

A full-screen loading overlay shown while the application is initialising (e.g., fetching config, resolving auth). It renders a centred spinner with the Xocialive brand mark.

πŸ“– Storybook

Preview​

Import​

import { AppLoader } from "@xocialive/ui-components";

Usage​

if (isInitialising) {
return <AppLoader />;
}

return <App />;

Props​

PropTypeDefaultDescription
messagestringβ€”Loading message displayed below the animation
fullScreenbooleanfalseWhen true, renders a full-viewport overlay with backdrop blur
size"small" | "medium" | "large""medium"Controls the animation dimensions
animationDataobjectBuilt-in LottieCustom Lottie animation JSON to replace the default spinner
sxSxProps<Theme>β€”Root element style overrides

See also​

  • ConfigLoader β€” variant specifically for configuration loading states
  • Loadable β€” HOC for lazy-loaded route components
  • DataContainer β€” inline loading state within page sections