New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-lite-button

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lite-button

A react button with linear gradient capabilities and loader function included

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 15 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts