Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@stnew/button

1.1.6 • Public • Published

@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.

Keywords

none

Install

npm i @stnew/button

DownloadsWeekly Downloads

1

Version

1.1.6

License

ISC

Unpacked Size

8.91 kB

Total Files

10

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar