Socket
Socket
Sign inDemoInstall

@blaze-react/input

Package Overview
Dependencies
11
Maintainers
10
Versions
116
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blaze-react/input

Create basic single-line input fields.


Version published
Weekly downloads
297
decreased by-30.12%
Maintainers
10
Install size
171 kB
Created
Weekly downloads
 

Readme

Source

Description

Create basic single-line input fields.

Usage

  • Required
<Input
  label="Text input required"
  placeholder="Placeholder text"
  onChange={({ event, value }) => {}}
  modifier="full-width"
  validationMessage="Email address is required"
  error
  required
/>
  • Disabled
<Input
  label="Text input disabled"
  placeholder="Placeholder text"
  onChange={({ event, value }) => {}}
  type="password"
  hideTypeToggle
  disabled
/>
  • Password toggle type
<Input
  label="Password - show hide"
  placeholder="******"
  onChange={({ event, value }) => {}}
  type="password"
  value="Lorem ipsum"
/>

API

Input can receive a number of props as follow:
NAMETYPEDEFAULT
labelStringempty
typeStringtext
valueStringempty
validationMessageStringThis field is required
disabledBooleanfalse
requiredBooleanfalse
hideTypeToggleBooleanfalse
errorBooleanfalse
onChangeFunction() => {}

FAQs

Last updated on 26 Mar 2021

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