Skip to Content

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-ui and also paste code maunally For both React & Next Js

1. Variants

These define the intent and visual weight of the Loader.

2. Sizes

Selects can be scaled to fit different UI densities.


Props

Prop NameTypeDefaultDescription
size"sm" | "md" | "lg""md"Controls the loader size. Maps to pixel values (sm = 16px, md = 24px, lg = 36px).
colorstring"#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 UI By 2 ways npm install zure-ui Or by Manually creating folder , files & paste the given code It Totally depends on your workflow.

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-app

Step 2: Navigate to Your Project Directory

After creating your project, navigate to your project directory:

cd my-app

Step 3: Install the Package

Run the following command in your project root to add the library as a dependency.

npm install zure-ui

Step 4: Start Building

You can now import any component directly into your React files.

App.jsx
import { Loader } from 'zure-ui'; function App() { return <Loader/> <Loader variant="dots" /> <Loader variant="bar" color="#000" /> }

Last updated on