Loader
Below is the full output of the Loader component across all variants and sizes.
“Its Important to install the packages & Dependencies to use can intall using
npm install zure-uiand also paste code maunallyFor both React & Next Js“
1. Variants
These define the intent and visual weight of the Loader.
Preview
2. Sizes
Selects can be scaled to fit different UI densities.
Preview
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "md" | Controls the loader size. Maps to pixel values (sm = 16px, md = 24px, lg = 36px). |
color | string | "#000" | Sets the primary color of the loader (spinner top, dots, or bar). Accepts any valid CSS color. |
variant | "spinner" | "dots" | "bar" | "spinner" | Chooses the loader style: circular spinner, animated dots, or progress bar. |
Installation
You can
Integrate Zure UIBy 2 waysnpm install zure-uiOr byManually creating folder, files & paste the given code ItTotally depends on your workflow.
NPM
NPM
Step 1: Create a React App
Open your terminal and run the following command to create a new React app:
npx create-react-app my-appStep 2: Navigate to Your Project Directory
After creating your project, navigate to your project directory:
cd my-appStep 3: Install the Package
Run the following command in your project root to add the library as a dependency.
npm install zure-uiStep 4: Start Building
You can now import any component directly into your React files.
import { Loader } from 'zure-ui';
function App() {
return
<Loader/>
<Loader variant="dots" />
<Loader variant="bar" color="#000" />
}