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

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

<ReactAwesomeButton />

Travis NPM

ReactAwesomeButton is a performant, extendable, highly customisable, production ready React Component that renders an animated set of UI buttons.

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

Live demo and examples

Examples

With plain CSS

  import AwesomeButton from 'react-awesome-button';
  import 'react-awesome-button/dist/styles.css';
  
  function Button() {
    return (
      <AwesomeButton>Primary Button</AwesomeButton>
    );
  }
  

With CSS Modules

  import AwesomeButton from 'react-awesome-button';
  import AwesomeButtonStyles from 'react-awesome-button/src/styles.scss'
  
  function Button() {
    return (
      <AwesomeButton
        cssModule={AwesomeButtonStyles}
      >Primary Button</AwesomeButton>
    );
  }
  
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 22 Oct 2017

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