Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-awesome-button

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-awesome-button

Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
627
decreased by-24.28%
Maintainers
1
Weekly downloads
 
Created
Source

<AwesomeButton />

Travis NPM

react-awesome-button is a performant, extendable, highly customisable, production ready React Component that renders an animated set of 3D UI buttons.

react-awesome-button demo

Live demo

Examples

With react-awesome-button and plain CSS

  import AwesomeButton from 'react-awesome-button';
  import 'react-awesome-button/dist/styles.css';

  function Button() {
    return (
      <AwesomeButton type="facebook">Button</AwesomeButton>
    );
  }

With react-awesome-button CSS Modules

  import AwesomeButton from 'react-awesome-button';
  import AwesomeButtonStyles from 'react-awesome-button/src/styles.scss'

  function Button() {
    return (
      <AwesomeButton
        cssModule={AwesomeButtonStyles}
        type="twitter"
      >
        Share
      </AwesomeButton>
    );
  }

Key Features

  • Look and feel customisable and extendable via SASS variables and lists (scss config file)
  • Use it with CSSModules or Plain CSS (NO inline-styles)
  • Render any tag as the component's child (text, icon, img, svg)
  • Animated progress button
  • OnClick bubble animation
AttributesTypeDefaultDescription
actionfunctionnullDefault click function
bubblesboolfalseShould render the bubbles onClick animation
disabledboolfalseShould render a disabled button
typestring"primary"Render a specific button type, styled by the .scss type list
sizestring"auto"Render a specific button size, styled by the .scss size list
elementnodenullOverwrites the default container element renderer, useful for using it with react-router Link container.
hrefstringnullForces the button to be rendered on an anchor container and sets the href to the specified value
targetstringnullRender an anchor with a specific target attribute
progressboolfalseShould render a progress button
loadingLabelstring"Wait .."Progress button loading label text
errorLabelstring"Error"Progress button error label text
successLabelstring"Success"Progress button success label text
visiblebooltrueShould the button be visible

License

MIT. Copyright (c) 2017 Rafael Caferati.

Keywords

FAQs

Package last updated on 16 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc