New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@brighthr/component-input

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-input

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

  • 3.0.5
  • npm
  • Socket score

Version published
Weekly downloads
286
decreased by-82.05%
Maintainers
0
Weekly downloads
 
Created
Source

Input

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

npm i @brighthr/component-input

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

import Input from '@brighthr/component-input';

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

<Input />

Props

NameTypeDefaultDescription
buttonAriaLabelstringSets the aria-label for the button if hasOverlay and hasButton are true.
disabledbooleanIf true, disables the input.
errorbooleanfalseIf true, shows a red error theme.
inputSize'base' 'xl''base'Sets the size of the input.
labelstringSets the label text.
leftIconNameIconNameSets the icon to display on the left (See Icon component).
onClickButton() => voidFunction to handle onclick.
requiredbooleanfalseIf true, sets the html input as required and adds the red required text.
rightIconNameIconNameSets the icon to display on the right (See Icon component).
unit'days' 'hrs' 'mins'Sets the unit to display.

FAQs

Package last updated on 18 Jul 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