Skip to Content
ComponentsButton

Button

Below is the full output of the Button 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 button.

2. Sizes

Buttons can be scaled to fit different UI densities.

3. Navigation & Custom Colors

Testing the to prop (Link) and the custom bg/color overrides.

Important Note “If you are using to in React you need no install react-router-dom

Navigate to Guide

Props

PropTypeDefaultDescription
childrenReactNodeContent displayed inside the button (text, icons, or elements).
variantstringprimaryVisual style of the button.
Values: primary, secondary, outline, ghost
sizestringmdControls button size.
Values: sm, md, lg
disabledbooleanfalseDisables the button and prevents interaction.
loadingbooleanfalseShows loading state and disables the button.
classNamestring""Adds custom CSS classes to the button.
tostringConverts the button into a navigation link.
bgstringCustom background color (hex, rgb, gradient).
colorstringCustom text color.
styleobjectInline styles for custom design.
...propsobjectAny valid native HTML button attributes.

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 { Button } from 'zure-ui'; function App() { return <Button>Hello From Saurav Zure</Button>; }

Last updated on