Skip to content

Loading Overlay

Loading covers a content area with a semi-transparent backdrop and centered loading indicator.

Basic Usage

Content underneath

Loading...
import { Loading } from "@paramanu/feedback-react"
export default function App() {
return (
<div style={{ position: "relative", height: 200 }}>
<p>Content underneath</p>
<Loading visible>Loading...</Loading>
</div>
)
}
<div style="position: relative; height: 200px;">
<p>Content underneath</p>
<div class="pm-loading pm-loading--visible">
<div class="pm-loading__backdrop"></div>
<div class="pm-loading__content">Loading...</div>
</div>
</div>

With Blur

Content underneath

Loading...
import { Loading } from "@paramanu/feedback-react"
export default function App() {
return (
<div style={{ position: "relative", height: 200 }}>
<p>Content underneath</p>
<Loading visible blur>Loading...</Loading>
</div>
)
}
<div style="position: relative; height: 200px;">
<p>Content underneath</p>
<div class="pm-loading pm-loading--visible pm-loading--blur">
<div class="pm-loading__backdrop"></div>
<div class="pm-loading__content">Loading...</div>
</div>
</div>