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

@flexcodelabs/input

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flexcodelabs/input

@flexcodelabs/input

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

@flexcodelabs/input

npm NPM

Package Name

Features

  • List of features

Installation

npm install @flexcodelabs/input

or

yarn add @flexcodelabs/input

Usage

...
import Input from '@flexcodelabs/input';

// Normal input
<Input
  label="Label"
  value={email}
  name="email"
  onChange={onChange}
  placeholder="Label"
/>

// password input
<Input
  label="Password"
  value={password}
  type="password"
  name="password"
  onChange={onChange}
  placeholder="********"
/>

// textarea
<Input
  label="Your Message"
  textarea
  value={message}
  handleChange={onChange}
  name="message"
/>

// Input with error message
<Input
  label="Label"
  value={email}
  name="email"
  onChange={onChange}
  placeholder="Label"
  error="Error message"
/>

// Input with success message
<Input
  label="Label"
  value={email}
  name="email"
  onChange={onChange}
  placeholder="Label"
  success="Success message"
/>

Examples

Source code

Props

NameTypeDefaultRequiredDescription
labelstring-falseinput label
disabledboolean-falseinput disabled status
autoCompletestring-false
inputClassstring-falseinput custom class name
inputStyleCSSProperties-falseinput custom styles
errorstring-falseerror message
onChangefunc()-false
typestring-falseinput type
successstring-falsesuccess message
valuestring or number-trueinput value
namestring-falseinput name
requiredboolean-falsewhether input field is required
showLabelbooleantruefalseshow or hide input label
textareaboolean-falsewhether to display textarea or normal input
placeholderstring-false
showIconReactNode-falseshow icon for password input field
hideIconReactNode-falsehide icon for password input field
classNamestring-falsecustom class name
styleCSSProperties-falsecustom styles
inputModesearch, text, tel, none, url, email, numeric, decimal or undefined-false

FAQs

Package last updated on 31 Jul 2022

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