Loading Overlay
FeedbackMITFull-area blocking spinner overlay for async views — drop-in for any container.
bun add @otfdashkit/ui
Preview
Loading OverlayFeedback
Loading Storybook preview…
Code
@otfdashkit/uiimport { LoadingOverlay } from '@otfdashkit/ui'
export function Example() {
return (
<LoadingOverlay loading text="Saving changes...">
<div className="rounded border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-8 text-center text-sm text-[hsl(var(--muted-foreground))]">
Content behind the overlay
</div>
</LoadingOverlay>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.
Props
Props declared in the LoadingOverlay source. Inherited HTML attributes are not listed.
| Prop | Type | Default | Description |
|---|---|---|---|
| loadingrequired | boolean | ||
| children | ReactNode | ||
| className | string | ||
| fullPage | boolean | ||
| text | string |