v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

LoadingOverlay

Busy feedback over an existing content region.

Interactive preview

Orbit workspace · Last updated just now.

Usage

import { LoadingOverlay } from "@devvy-ui/react";

<LoadingOverlay loading={loading} label="Refreshing projects">{content}</LoadingOverlay>

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
loadingbooleanrequiredBusy state.
labelstringLoading contentStatus text.
childrenReactNode—Underlying content.

Accessibility & behavior

Platform Behavior & Guidelines

Marks the content busy and shows a readable status without a focus trap. The visual layer does not disable underlying actions; applications must disable unsafe actions explicitly.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add loading-overlay

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

LoadingOverlay.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.