Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paprika/button

Package Overview
Dependencies
Maintainers
2
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paprika/button

Button component

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.5K
increased by2.21%
Maintainers
2
Weekly downloads
 
Created
Source

Button

The <Button> component is a fully accessible button intended for use typically as a skeuomorphic button, but many visual styles (kinds) are available.

For buttons with a label that is only an icon, the <Button.Icon> component is provided. For typical close buttons, <Button.Close> is provided.

It is rendered as a <button> element by default, but can also be rendered as a generic <span>, via the <RawButton> if global CSS conflicts are an issue (when isSemantic prop is set to false).

Installation

> npm install --save @paprika/button or > yarn add @paprika/button

Usage

For a basic button

import Button from "@paprika/button";

<Button onClick={clickHandler}>Button label</Button>;

Or a button

import Button from "@paprika/button";
import InfoIcon from "@paprika/icon/lib/InfoCircle";

<Button.Icon onClick={clickHandler}>
  <InfoIcon />
</Button.Icon>;
import Button from "@paprika/button";

<Button.Close onClick={clickHandler} />;

Props

  • a11yText
  • canPropagate
  • children
  • icon
  • isActive
  • isDisabled
  • isDropdown
  • isFullWidth
  • isPending
  • isSemantic
  • isSubmit
  • kind ["default", "primary", "secondary", "destructive", "flat", "minor", "link"]
  • onClick (required)
  • role
  • size ["small", "medium", "large"]
  • tabIndex
Button.Close
  • isDark

More detail about these props

FAQs

Package last updated on 27 Jun 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc