technowell-text-input-v2
v1.0.0
Published
A customizable text input component for React
Maintainers
Readme
Technowell Text Input
A customizable text input component for React.
Installation
npm install technowell-text-input
# or
yarn add technowell-text-inputUsage
import TechTextInput from 'technowell-text-input';
function MyForm() {
return (
<TechTextInput
placeholder="Enter your name"
title="Name"
type="text"
/>
);
}Props
| Prop | Type | Default | Description | |-----------------|----------|---------------|----------------------------------| | placeholder | string | 'Enter text' | Input placeholder text | | type | string | 'text' | Input type (text, password, etc) | | title | string | '' | Label text | | className | string | '' | Container class | | inputClassName | string | '' | Input element class | | labelClassName | string | '' | Label element class |
Styling
The component comes with default styles but can be customized using CSS modules or by passing class names.
