loading screen layer full page with shadcn
Here's a reusable full-page loading screen component using shadcn/ui components. This overlay will cover the entire page while content is loading.
LoadingScreen
component creates a fixed overlay that covers the entire viewport with a semi-transparent background and blur effect.It displays:
The demo page shows how to:
You can customize the loading screen by:
message
prop to display different loading textbg-background/80
classThis component works well for full-page loading states, initial data fetching, or during form submissions.