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
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-input

3.1.0
latest
npm
Version published
Maintainers
1
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 05 Feb 2025

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