This page as markdown: /page-loader.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

PageLoader

Status: stable

Full-screen branded loading splash: the screen fades in, the mark breathes, and an indeterminate Progress bar pulses beneath it. All motion is token-driven, so it freezes to a calm static screen when motion is off/reduced.

Keywords: page loader, loading, route, pending

Usage

Use PageLoader for full-route or full-page pending states where the entire view is not ready yet.

Best practices

Props

Name Type Default Description
children ReactNode — Brand mark / logo shown at center. Falls back to a neutral pulsing mark.
label string "Loading" Caption beneath the mark; also the accessible label on the role=status region.
fullscreen boolean true Cover the viewport (fixed) vs fill the nearest positioned parent (absolute).
hideBar boolean false Hide the indeterminate Progress bar under the mark.

Tokens used

background, foreground, secondary, primary, muted-foreground

Accessibility

Related

Examples

Default

import { PageLoader } from "@sableui/react"

<PageLoader label="Loading Studio" />

With a logo

import { PageLoader } from "@sableui/react"

<PageLoader label="Loading"><img src="/logo.svg" alt="" className="h-10 w-auto" /></PageLoader>

Contained (fills parent)

import { PageLoader } from "@sableui/react"

<div className="relative h-80"><PageLoader fullscreen={false} hideBar /></div>