uipack-manan
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

uipack-manan Logo

UIPack-Manan - A UI Pack for Developers

npm version npm downloads

Tired of writing endless lines of code just to create modern, stylish buttons? Struggling with how to implement them from scratch without spending hours on design and code? Say goodbye to the frustration! With uipack-manan, you can implement beautiful, fully customizable buttons and other UI components in just a few lines of code.

I’ve designed this package for developers and designers who want to skip the hassle of manual styling and focus more on what matters. Whether you're a beginner or an experienced coder, uipack-manan makes it easy to build professional, eye-catching UI components without the overwhelming complexity. Customize the button’s style, toggle tooltips, select different variants, and even add a magical touch with our unique magic star button. All with minimal code!

🎯 Live Demo

Check out a working demo of uipack-manan in action on CodeSandbox! Demo.

✨ What’s Included?

  • Customizable Button Component
  • Easy-to-use Button Variants
  • Tooltip Toggle
  • Magic Star Button (For an extra surprise!)

And the best part? You can do all of this in less code than ever before!


🚀 Installation

Install uipack-manan via npm:

npm install uipack-manan

Then, import the Button component in your project:

import { Button } from "uipack-manan";

API Reference

Prop Type Default Description
style React.CSSProperties {} Custom styles for the button.
onClick () => void undefined Custom click handler function.
tooltipText string "" Tooltip text to show on hover.
tooltip boolean false Enable tooltip to show on hover.
variant "default" | "uplift" | "slide" | "pop" | "shine" "default" Choose a button style variant.
magic boolean false Enable the magic star button effect.

🔥 Button Component

Our button component is fully customizable and supports various features like:

  • Custom styling
  • Custom onClick actions
  • Tooltip visibility toggle
  • Multiple button variants
  • Magic button with an animation effect

🔧 Usage

Here’s how you can use the Button component:

<Button
variant="uplift"
style={{ backgroundColor: 'blue', color: 'white' }}
tooltip={true}
tooltipText="This is a button"
onClick={() => console.log("Button clicked!")}
magic={false}
> Click Me
</Button>

🎨 Button Variants

My package offer 6 eye-catching button variants that you can easily use with a single prop!

  • default
  • uplift
  • slide
  • pop
  • shine

✨ Magic Star Button

Want to add a little magic to your buttons? Set the magic prop to true and see the transformation into a dazzling magic star button!

<Button
magic={true}
onClick={() => console.log("Magic Clicked!")}
Hover Me for Magic </Button>

💡 Features

  • Custom Styling: Customize the button’s styles using the style prop.
  • Variants: Choose from 6 different variants to fit the look of your app.
  • Tooltip: Toggle the tooltip visibility using the tooltip prop.
  • Easy Customization: Add any custom onClick function to handle user interactions.
  • Magic Button: Activate a magical star effect with the magic prop.

🛠️ Development Setup

  1. Clone the repository:
    git clone https://github.com/manan5657/uipack-manan
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm start

📜 License

uipack-manan is licensed under the MIT License.

license


🙌 Support

Have questions or need help? Feel free to open an issue or reach out to Manan Bhasin directly.


Start building with uipack-manan today and transform your React development experience! 🌟

Package Sidebar

Install

npm i uipack-manan

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

62 kB

Total Files

20

Last publish

Collaborators

  • manan5657