Socket
Book a DemoInstallSign in
Socket

@stnew/button

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stnew/button

Reuseable button component for React projects

latest
Source
npmnpm
Version
1.1.6
Version published
Maintainers
4
Created
Source

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

FAQs

Package last updated on 29 Aug 2019

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