Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

tiss-co/react-input-tis

Repository files navigation

react-input-tis

Powerful input component for React

NPM JavaScript Style Guide

react-input-tis Banner

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published