1.0.4 • Published 7 years ago

animated-react-button v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Custom-React-Buttons

Custom animated buttons made with React.js

Usage

This is a React component for use in React apps

The only dependency is React

Color Schemes

There are 8 built-in color schemes:

  • glass
  • white
  • default
  • blue
  • green
  • yellow
  • orange
  • red

these are used by passing the color prop like this:

<Btn color={'red'}> ... </Btn>

Custom Color Schemes

You can create your own color schemes by passing an object to the color prop:

<Btn color={{
  background: 'magenta',
  border: 'rgb(97, 42, 205)',
  shadow: 'rgba(124, 55, 12, 0.8)',
  inset: '#20db87',
  text: '#432'
}}> ... </Btn>

Overriding Defaults

You may override anything you want by using an inline style prop as an object:

<Btn 
  style={{
    height: '400px',
    width: '400px',
    fontFamily: 'impact',
    fontSize: '4em',
    textShadow: '0 1px 1px black',
    transform: 'rotate(45deg)',
    margin: '100px',
  }}
>

Optional Props

caps is a boolean, add this to uppercase all text:

<Btn caps> this will be all uppercase </Btn>
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago