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

@acodez/inputfield

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acodez/inputfield

Input type component

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

@acodez/inputfield

npm_version license

React input component.


  • Installation
  • PropsAPI
  • Usage

Installation

npm install @acodez/inputfield

Props API

PropertyTypeRequiredDescription
typestringyesinput type, text, password, email
sizestringnosize (height) of the input, nomral or big
labelstringnolabel of input, shoown above the input field
errorMessagestringnoerror message
forgotPassLinkstringnoForgot Password link for password field

Usage

import InputField from "@acodez/inputfield";

Example - Basic

<InputField type="text" name="name" placeholder="Your Name" />

Example - With required, error message

<InputField type="email" name="email" placeholder="Your Email" required="required" errorMessage="Invalid email address" />

Example - Type password (with forgot password link, show/hide password option)

<InputField type="password" name="password" placeholder="Your Password" required="required" errorMessage="Invalid Password" forgotPassLink="/forgot-password" />

Example - Size big, with label

<InputField type="text" name="name" placeholder="Your Name" size="big" label="Your Name" />

Keywords

FAQs

Package last updated on 25 Jan 2021

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