ValyroUI Русская версия

Loading Overlay

Loading screen. Free, MIT · Overlays and notifications › Messages and status

Blocks a region while it loads. Without fullscreen it fills its parent, which must be positioned (e.g. position: relative), and marks that parent aria-busy.

Installation

npx valyro-cli@latest add loading-overlay
npx shadcn@latest add https://valyro.xyz/r/loading-overlay.json
npm install valyro-ui

import 'valyro-ui/styles.css';
import { LoadingOverlay } from 'valyro-ui';

Props

PropTypeDefault
visible *booleanShows the overlay with a fade. Unless fullscreen, the covered parent gets aria-busy meanwhile.
fullscreenbooleanfalseCover the whole viewport instead of the nearest positioned parent.
messageReactNodeText under the spinner, announced politely to screen readers.
progressnumber0–100; shows a determinate progress bar.
labelstring'Loading'Announced to screen readers when there is no message.

Related components

Previous: Notification Center · Next: Dialog · All Overlays and notifications