Socket
Socket
Sign inDemoInstall

@brighthr/component-button

Package Overview
Dependencies
7
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

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:


Version published
Weekly downloads
1.6K
decreased by-43.93%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 22 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc