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

@brighthr/component-button

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-button

To install, type the following into the command line at the root of your project:

  • 3.0.0
  • npm
  • Socket score

Version published
Weekly downloads
512
decreased by-57.19%
Maintainers
1
Weekly downloads
 
Created
Source

Button

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-button

To implement the Button component into your project you’ll need to add the import:

import Button from '@brighthr/component-button';

After adding import into your project you can use it simply like:

<Button />

Props

NameTypeDefaultDescription
color'primary' 'accent' 'error' 'white''accent'Sets the color of the button.
fullWidthbooleanfalseSets the button width to 100%.
iconNamestringSets the icon to display, uses calendar-dates if left empty.
iconPosition'left' 'right'Sets the position of the icon, if left empty the icon will not show.
isLoadingbooleanfalseIf true, the loading spinner will show.
outlineButtonbooleanfalseIf true, the button will have a white background.
size'xs' 'sm' 'base' 'lg' 'xl''base'Sets the size of the button.
textstringSets the button text.
textButtonbooleanfalseIf true, gives the button a text appearance.

FAQs

Package last updated on 24 Jan 2024

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