react-input-tis
v1.0.9
Published
Powerful input component for React
Downloads
5
Readme
react-input-tis
Powerful input component for React
Install
npm i react-input-tis
or
yarn add react-input-tis
Usage
import React, { useState } from 'react'
import { Input, inputType } from 'react-input-tis'
import 'react-input-tis/dist/index.css'
const App = () => {
const [value, setValue] = useState('')
return (
<Input
containerClassName='Container'
labelClassName='Label'
inputClassName='Input'
label='Text input:'
placeholder='Input your text'
type={inputType.text}
value={value}
onChange={(e) => setValue(e.target.value)}
roundedBorder={true}
autoFocus={false}
darkMode={false}
minLength={4}
// and other typical input props ...
/>
)
}
License
MIT © boof-tech