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-uiand also paste code maunallyFor both React & Next Js“
1. Variants
These define the intent and visual weight of the button.
Preview
2. Sizes
Buttons can be scaled to fit different UI densities.
Preview
3. Navigation & Custom Colors
Testing the to prop (Link) and the custom bg/color overrides.
Important Note “If you are using
toin React you need no installreact-router-dom”
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Content displayed inside the button (text, icons, or elements). |
variant | string | primary | Visual style of the button. Values: primary, secondary, outline, ghost |
size | string | md | Controls button size. Values: sm, md, lg |
disabled | boolean | false | Disables the button and prevents interaction. |
loading | boolean | false | Shows loading state and disables the button. |
className | string | "" | Adds custom CSS classes to the button. |
to | string | — | Converts the button into a navigation link. |
bg | string | — | Custom background color (hex, rgb, gradient). |
color | string | — | Custom text color. |
style | object | — | Inline styles for custom design. |
...props | object | — | Any valid native HTML button attributes. |
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 { Button } from 'zure-ui';
function App() {
return <Button>Hello From Saurav Zure</Button>;
}