1.1.6 • Published 5 years ago

@stnew/button v1.1.6

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

@stnew/button

A button component for React projects.

Usage

// require.js
const button = require('@stnew/button');

// es6
import Button from '@stnew/button';

Props

  • className - string sets the class of the button.
  • onClick - function sets the callback function for click events
  • disabled - boolean toggle for the 'disabled' state of the button
  • label - string Text to be displayed on the button element
  • title - string sets the 'title' attribute for the element.
  • as - 'button', 'a' can override the tag used for the element.
  • href - string link to be opened when the button element is clicked.
  • target - string sets the 'target' attribute for the element.
  • rel - string sets the 'rel' attribute for the element.
  • type - 'button', 'submit' sets the 'type' attribute for the element.
1.1.6

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago