nalarx-ui
Components

Loading overlay

A frosted veil with a spinner while a save, update or delete is in flight.

bunx shadcn@latest add @nalarx/loading-overlay

Usage

scope="container" (default) covers the nearest positioned ancestor and leaves the rest of the app usable. scope="screen" covers the viewport and locks scrolling, for the rare operation that freezes the whole app. Delay show by about 220ms so fast saves never flash the veil. Not for chat streaming.

<div className="relative">
  …
  <LoadingOverlay show={pending} label="Saving…" />
</div>
Sales agent

Answers pricing questions from the catalogue.

Saving…
Sales agent

Answers pricing questions from the catalogue.

Saving…

Props

PropTypeDefault
showboolean
labelstringAnnounced loading string, nothing visible
scope"container" | "screen""container"
radiusnumber14 (px, container veil)

Replaces

LoadingOverlay.tsx in both apps.

On this page