Loader - React Component | Kokonut UI
Loader
Animated loading indicator with rotating gradient rings, size variants and customizable title text. Built with React and Tailwind CSS.
Installation
Loader is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/loader.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/loader
Usage
import Loader from "@/components/kokonutui/loader";
export default function Example() {
return <Loader />;
}
Props
title
string Default "Configuring your account..."
subtitle
string Default `"Please wait while we prepare everything for yo…"
Pass an empty string to show the title alone.
size
"sm" | "md" | "lg" Default "md"
Also takes every prop of Omit<HTMLAttributes<HTMLDivElement>, "title" | "children">.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts |
shadcn init | |
| React | 19 |
Your app |
| Tailwind CSS | 4 |
Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.
On this page
Natural Date Input Type “next fri 3pm” and a preview rolls to the exact date.
- 150+ components and templates for AI products
- Works with Claude Code, Cursor and more
- One command installation with shadcn/cli
Explore Kokonut UI Pro