Loader
Displays customizable loading animations with options for size, color, animation type, and labels.
Default Loader
Loading...
Variants
Letters
TRAKEN UI
Dots
Line
Bird
Square
Logo
Loading...
Neon
Loading...
Spinner
Loading...
Colors
Base...
Primary...
Secondary...
Success...
Warning...
Danger...
Sizes
Small...
Medium...
Large...
Extra Large...
2xl...
3xl...
4xl...
Features
- Size: Customize the loader size with options like
sm
,md
,lg
,xl
, and more. - Color: The loader color can be customized to match your design (
base
,primary
,secondary
,success
,warning
,danger
). - Type: Choose from various loader types like
spinner
,dots
,neon
,line
,logo
,square
,letters
, or even abird
animation. - Label: Optionally add a label or text that will be displayed alongside the loader.
Built-In Loaders
These are the various loader types provided:
- Spinner Loader: A circular spinning loader, ideal for general loading states.
- Dots Loader: A series of animated dots that indicate loading.
- Neon Loader: A glowing neon-like loading animation.
- Line Loader: A simple line animation that indicates progress.
- Logo Loader: A loader animation in the shape of a logo.
- Square Loader: A square-shaped animation for a modern look.
- Letters Loader: A loading animation where the letters animate in and out.
- Bird Loader: A unique bird animation loader.
Loader Component Props
Prop | Type | Default | Description |
---|---|---|---|
size | `"sm" | "md" | "lg" |
color | `"base" | "primary" | "secondary" |
type | `"spinner" | "dots" | "neon" |
label | string | - | Optional text to display next to the loader. |
labelColor | string | - | Optional color for the label text. |
className | string | - | Additional CSS class for custom styling. |
text | string | "TRAKEN UI" | Customizable text to display with the loader. |