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.
π StorybookPreviewβ
Live previewβ Open in Storybook
Importβ
import { AppLoader } from "@xocialive/ui-components";
Usageβ
if (isInitialising) {
return <AppLoader />;
}
return <App />;
Propsβ
| Prop | Type | Default | Description |
|---|---|---|---|
message | string | β | Loading message displayed below the animation |
fullScreen | boolean | false | When true, renders a full-viewport overlay with backdrop blur |
size | "small" | "medium" | "large" | "medium" | Controls the animation dimensions |
animationData | object | Built-in Lottie | Custom Lottie animation JSON to replace the default spinner |
sx | SxProps<Theme> | β | Root element style overrides |
See alsoβ
ConfigLoaderβ variant specifically for configuration loading statesLoadableβ HOC for lazy-loaded route componentsDataContainerβ inline loading state within page sections