2.0.3 • Published 3 years ago

profanity-input-field v2.0.3

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

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

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