1.0.9 • Published 1 year ago

react-gradient-palette v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Certainly! A well-crafted README is essential for attracting users to your React library. Here's a template you can use as a starting point for your react-gradient-palette library:


React Gradient Palette

React Gradient Palette

React Gradient Palette is a lightweight and customizable React library for generating gradients effortlessly. It provides a simple and intuitive interface for users to create and select gradients.

Features

  • 🎨 Easy-to-use React component: <GradientMaker setGradient={setGradient} />
  • 🌈 Generate beautiful gradients with a few clicks
  • 🚀 Lightweight and fast
  • 🔧 Customizable options for advanced users
  • 📦 Easily integrate into your React projects

Demo

See the react-gradient-palette in action here

Installation

Install the package using npm:

npm install react-gradient-palette

Or using yarn:

yarn add react-gradient-palette

Usage

Import the GradientMaker component and use it in your React project:

import React from 'react';
import { GradientMaker } from 'react-gradient-palette';

function YourComponent() {
  const setGradient = (selectedGradient) => {
    // Handle the selected gradient here
    console.log('Selected Gradient:', selectedGradient);
  };

  return (
    <div>
      <h1>Your React App</h1>
      <GradientMaker setGradient={setGradient} defaultGradient={['#ff5733', '#d147a3']}/>
    </div>
  );
}

API

Customization

The GradientMaker component provides various customization options. You can customize the appearance and behavior by passing props to the component. For example:

<GradientMaker
  setGradient={setGradient}
  defaultGradient={['#ff5733', '#d147a3']}
  showRadial={true}
/>

License

MIT © AishwaryaMurade

Contributing

If you have suggestions or find issues, please feel free to open an issue or create a pull request. Contributions are welcome!

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago