Loader
Used to show loading states.
Installation
CLI
Add component to your project.
npx @perceptui/cli@latest add loaderImport from @perceptui/ui
Note: If you have installed @perceptui/ui package, then import Loader
from @perceptui/ui.
import { Loader } from "@perceptui/ui";API References
| Prop | Type | Description | Default |
|---|---|---|---|
| color | string | Color of the Loader | blue |
| size | "xs"|"sm"|"md"|"lg"|"xl" | Size of the Loader | md |
| className | string | className | _ |
Examples
Color
There are more color properties. Take your time to explore.