Catalog npm
PACKAGE EXPLORERView in registry

2r-button

npm

2R library button component implemented in React

buttonbutton-componentreactreact buttonreact-butonreact-button-componentreact-component
Versions collected7
Direct dependencies19From release 1.0.6
Last observed20 Oct, 19:18 UTC

README

Current package documentation

2r-button

2R library button component implemented in React.

Instalation

2r-button is available as an npm package. Simply run npm install 2r-button command.

To use it in your project:

import button from '2r-button'; // ES6 syntax
var button = require('2r-button'); // ES5 syntax

Usage & API

The following props can be passed to the component:

  • disabled (Boolean): whether the button is disabled or not (defaults to false)

  • text (String): the text of the button (defaults to Button)

  • classes (String): a string of multiple classes, separated by space (defaults to '')

  • onClick (Function): the callback function to be executed when button is pressed

Examples

There is an examples folder inside the project with a minimum config. Steps to run:

  • Clone the project and

  • Run npm install

  • Run gulp examples

  • Navigate to http://localhost:5000

License

This software is released under the terms of WTFPL v2.0 license.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.6Registry latest1 Sept 201519
1.0.522 Aug 201519
1.0.422 Aug 201519
1.0.322 Aug 201519
1.0.221 Aug 201519
1.0.120 Aug 201519
1.0.020 Aug 201519

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
vladzelinschi/2r-button

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d092caf4a8f98bccf9fb03a9fdec4377a456de75de45e6c670f4b675a4674856