0.0.6 • Published 12 months ago

@quickat/field-input v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Field Input

A customizable and accessible input field component built with React, TypeScript, and Tailwind CSS. Supports validation, inline editing, password toggling, and verification indicators.

✨ Features

  • 📝 Supports text, email, password, and other input types
  • ✅ Inline editing with an edit toggle button
  • 🔒 Password visibility toggle
  • 🎯 Validation for required fields, min/max length, and email format
  • ✅ Verification status indicators (verified/unverified)
  • 🎨 Customizable styles via props
  • 🎨 Tailwind CSS Powered - Built with Tailwind utility classes for consistent styling

📦 Installation

Install via npm or yarn:

npm install @quickat/field-input
or
yarn add @quickat/field-input

📌 Props Table

Prop NameTypeDescriptionDefault
type"text" \| "password" \| "email" \| "date" \| "month" \| "tel" \| "number" \| "hidden"Type of the input field"text"
labelstringLabel for the input field""
descriptionstringAdditional description text""
verifiedboolean \| "none"Displays a verified (✔) or unverified (⚠) icon"none"
editablebooleanAllows toggling input editabilitytrue
errorMessagestringError message to display""
mainContainerStyles_FIstringCustom styles for the main container""
infoContainerStyles_FIstringCustom styles for label and description container""
labelStyles_FIstringCustom styles for the label""
descriptionStyles_FIstringCustom styles for the description text""
inputStyles_FIstringCustom styles for the input field""
errorStyles_FIstringCustom styles for error message""
valuestring \| numberValue of the input field""
onChange(event: React.ChangeEvent<HTMLInputElement>) => voidFunction to handle input changeundefined
onBlur(event: React.FocusEvent<HTMLInputElement>) => voidFunction to handle input blurundefined
requiredbooleanWhether the field is requiredfalse
minnumber \| stringMinimum length (if applicable)undefined
maxnumber \| stringMaximum length (if applicable)undefined
patternstringRegex pattern for validation""
placeholderstringPlaceholder text""
disabledbooleanDisables the input fieldfalse
0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago