2.0.3 • Published 4 years ago

profanity-input-field v2.0.3

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

profanity-input-field


input field that auto-validates the text entered by the user and checks for the list of bad words and gives an alert on the user interface.

Installing


Using npm:

$ npm i profanity-input-field

Using bower:

$ bower install profanity-input-field

Using yarn:

$ yarn add profanity-input-field


Usage:


Import:

import {profanityCheck} from "profanity-input-field";

Form Data: Use the form fields as below.

`

Error Field :    <span id="errorinfo" className="hide"></span>

Input Field :    <input type="text" id="profane-input" data-errorinfo="Field can't contain profane words"></input>

Button(OnClick): <button onClick={profanityCheck}>Submit</button>

`

NOTE:

HTML attributes plays crucial role for functionality to work. Make sure they are provided exactly the same in your HTML structure.


2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago