1.0.17 • Published 3 years ago

@clarktotoro/input v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

NextInput

A reusable React input component with TailwindCss and validating.

Installation

Install the package using npm:

npm install @clarktotoro/input

NextInput Usage

import React from 'react';
import {NextInput} from '@clarktotoro/input';

function App() {
  return (
    <div>
      <NextInput type="text" name="name" />
    </div>
  );
}

export default App;

Validating

import React from 'react';
import {NextInput} from '@clarktotoro/input';

function App() {
  return (
    <div>
      <NextInput type="text" name="name" needVerified />
    </div>
  );
}
## 
## Props

type: 'text'|'email'|'password'|'search'
name: 'text'|'email'|'password'|'code'|'name'
needVerified?: boolean;

## Setting

in tailwind.config.ts, add content

```bash
content: [
    './node_modules/@clarktotoro/**/*.{js,ts,jsx,tsx,mdx}',
  ],
1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago