Skip to Content
Kokonut UI

IN-04Inputs

Loader

Animated loading indicator with rotating gradient rings, size variants and customizable title text. Built with React and Tailwind CSS.

Install with
no extra packages

PRONatural Date Input and more like it are in Kokonut UI Pro

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
stringDefault "Configuring your account..."
subtitle
stringDefault "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

NeedsVersionComes from
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.