@stnew/button
TypeScript icon, indicating that this package has built-in type declarations

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @stnew/button

      Weekly Downloads

      6

      Version

      1.1.6

      License

      ISC

      Unpacked Size

      8.91 kB

      Total Files

      10

      Last publish

      Collaborators

      • artofrawr
      • cabe
      • returningsam
      • ryanhefner