Back to Components
Components

Page Loader

Full-page loading overlay with spinner and optional message.

Loading your dashboard

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/page-loader.tsx

Installation

Using shadcn CLI

npx shadcn add page-loader --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge