0.1.1 • Published 3 years ago
@mats_/react-gradient-button v0.1.1
A Simple React Gradient Button by mats_
Installation
Install using npm install @mats_/react-gradient-button
Usage
In a React app, use the Button Component as follows:
import { Button } from '@mats_/react-gradient-button'
Button props
Name Description
buttonText string
buttonWidth number
buttonHeight number
buttonRadius number(renders as pixels)
gradientType 'linear-gradient'
gradientDirection 'left | right | bottom-left | bottom-right | top-left | top-right '
gradientColorOne 'hex | rgba() | name'
gradientColorTwo 'hex | rgba() | name'
disabled Boolean
onClick function