A plug-and-play input form field that contains set of rules on profanity filters.
npm install profanity-input-fieldinput 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.
Using npm:
$ npm i profanity-input-field
Using bower:
$ bower install profanity-input-field
Using yarn:
$ yarn add profanity-input-field
________________________________________________________________________________________________________________________
Import:
import {profanityCheck} from "profanity-input-field";
Form Data: Use the form fields as below.
Error Field :
Input Field :
Button(OnClick):
NOTE:
HTML attributes plays crucial role for functionality to work. Make sure they are provided exactly the same
in your HTML structure.
________________________________________________________________________________________________________________________