Loading...
Skip to main content

Loading

Loading shows a full-page loading overlay with a Spinner and a message. It covers the viewport with a translucent backdrop, so render it only while blocking work is running.

Example

document/component/Document/LoadingDemo.tsx
<Button onClick={showLoading}>Show loading</Button>

{loading && <Loading>Loading...</Loading>}

Usage

import { Loading } from 'idea-react';

{
uploading && <Loading>Uploading…</Loading>;
}

The children replace the default Loading... text. For loading states inside a button or a table, use the Spinner button or Table spinner instead.

Set opacity={100} for a fully opaque backdrop, such as while restoring persisted application state. Keep the covered content inert until restoration finishes so keyboard focus cannot enter it.

Documentation navigation
On this page
On this page