1.0.17 • Published 2 years ago

@clarktotoro/input v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago