1.1.5 • Published 5 years ago

react-lite-button v1.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-lite-button

A simple and liteweight react button with linear gradient capabilities and with awesome loader

This package uses react-spinners in order to use loader functions

NPM JavaScript Style Guide

Example

example

Buttom Loader example

example with Loader

Install

npm install --save react-lite-button

Usage

import React, { Component } from "react";

import MyComponent from "react-lite-button";

class Example extends Component {
  render() {
    return <MyComponent />;
  }
}

To enable loader

import React, { Component } from "react";

import MyComponent from "react-lite-button";

class Example extends Component {
  render() {
    return <MyComponent loading = {isLoading} {...other props are listed down} />;
  }
}
Prop NameTypeDefaultDescription
titlestringnamelessTitle of the button
onClickfunctionnullonClick function after the button in clicked
colorsarray"#fe6b8b" , "#ff8e53"require two colors inorder work show linear-gradient
textColorstringwhitecolor of the text appears inside the button
textSizenumber17fontSize
widthnumber or string'100%'specify the width of the button within the string or number
borderRadiusnumber or string3borderRadius of the button
heightnumber or string48height of the button
shadowstring"0px 3px 5px 2px rgba(255, 105, 135, 0.3)"button shadow color
loadingbooleanfalsewhether the button is currently
loaderTypestringClipLoaderMore loaders @
loaderSizenumber or string30size of the loader
loaderColorstring'white'color of the loader

License

MIT © sky32752

1.1.5

5 years ago

1.1.4

5 years ago

1.1.1

5 years ago

1.0.2

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.1.3

5 years ago

1.0.4

5 years ago

1.1.2

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago