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

react-btn

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-btn

A React component that renders a pretty button element

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

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

react-btn

Inspired by Bootstrap's 3.x buttons, react-btn is a simple React component that allows you renders a pretty button element.

Installation

The easiest way to use react-btn is to install it from NPM and include it in your React build process (using Webpack, etc).

npm install react-btn --save

You can also use the standalone build by including dist/react-btn.js and dist/react-btn.css in your page. If you do this, make sure you already included the following dependencies:

Usage

CommonJS:

var Button = require('react-btn');

<Button btnStyle="info" size="xs">
  Tiny button
</Button>
<Button size="sm">
  Small, default button
</Button>
<Button btnStyle="primary" type="submit">
  Submit button
</Button>
<Button btnStyle="warning" size="lg">
  Warning button
</Button>
<Button btnStyle="danger">
  Danger!
</Button>

Browser:

React.createElement(ReactBtn, {btnStyle: 'info', size: 'sm', type: 'submit'}, 'Small Submit Button');

CSS stylesheet

I've built a default stylesheet, dist/react-btn.css, that you may include in your sites/projects.

You can customize the styles by modifying the stylesheet itself or by using less and modifying the less files in the /less directory.

Examples

Keywords

FAQs

Package last updated on 17 Feb 2016

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