react-custom-gradient-button

1.1.7 • Public • Published

react-custom-gradient-button

Introduction

react-custom-gradient-button is a very light custom gradient button component for the react.

The main purpose of this library implement custom gradient buttons easily.

Examples

with props

<GradientButton
  color="white"
  start="#aa076b"
  middle="#61045f"
  end="#aa076b"
  borderRadius="0.5rem"
  width="5rem"
  height="2rem"
  onClick={() => {
    console.log('!Clicked');
  }}
>
  Click Me
</GradientButton>

without style props

<GradientButton
  onClick={() => {
    console.log('!Clicked');
  }}
>
  Click Me
</GradientButton>

Installation

npm

npm install react-custom-gradient-button

yarn

yarn add react-custom-gradient-button

API

Prop Type Description
className string custom classes can be added.
color string button text color.
start string left background color of button.
middle string middle background color of button may initilize with "" .
end string end background color of button.
borderRadius string end background color of button.
width string width of button.
height string height of button.
...props func you can add also custom props like onClick

License

MIT

Copyright (c) 2022 Emre Çil.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.72latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.72
1.1.60
1.1.50
1.1.40
1.1.31
1.1.20
1.1.10
1.1.00
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-custom-gradient-button

Weekly Downloads

3

Version

1.1.7

License

MIT

Unpacked Size

48.3 kB

Total Files

7

Last publish

Collaborators

  • emrecil