1.1.7 • Published 2 years ago

react-custom-gradient-button v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

PropTypeDescription
classNamestringcustom classes can be added.
colorstringbutton text color.
startstringleft background color of button.
middlestringmiddle background color of button may initilize with "" .
endstringend background color of button.
borderRadiusstringend background color of button.
widthstringwidth of button.
heightstringheight of button.
...propsfuncyou can add also custom props like onClick

License

MIT

Copyright (c) 2022 Emre Çil.

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago