custom-react-input-field
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Custom React Input Field

One line of code worths thousands lines of explanations.

import React, { useState } from 'react'
import Input from 'custom-react-input-field'
import styles from './styles.module.scss'
const Container: React.FC<any> = () => {
    const [text, setText] = useState('')
    return <div className={styles.container}>
        <Input 
            label={'Your Name'}
            value={text}
            onChange={(e) => setText(e.target.value)}
            required
            inputStyle={{
                paddingBottom: '2px'
            }}
          />
    </div>
}

export default Container

Package Sidebar

Install

npm i custom-react-input-field

Weekly Downloads

3

Version

0.0.5

License

MIT

Unpacked Size

79.4 kB

Total Files

10

Last publish

Collaborators

  • tranhducvnn