Comparing version 0.0.8 to 0.0.10
{ | ||
"name": "recassfov", | ||
"version": "0.0.8", | ||
"version": "0.0.10", | ||
"description": "React Client and Server Side Form Validation", | ||
"main": "./npm/Recassfov.js", | ||
"scripts": { | ||
"dev": "parcel ./example/index.html --out-dir ./dist --public-url /", | ||
"start": "parcel ./example/index.html --out-dir ./dist --public-url /", | ||
"build": "babel --plugins transform-react-jsx ./src/Recassfov.jsx > ./npm/Recassfov.js" | ||
@@ -9,0 +9,0 @@ }, |
@@ -8,2 +8,4 @@ # recassfov | ||
[Demo](https://z3j2o35pjm.codesandbox.io/) | ||
## Usage | ||
@@ -77,2 +79,17 @@ | ||
Add `.is-invalid` and `.invalid-feedback` classes into your CSS. | ||
```css | ||
.is-invalid { | ||
border: 1px solid #dc3545; | ||
} | ||
.invalid-feedback { | ||
display: none; | ||
color: #dc3545; | ||
} | ||
.is-invalid~.invalid-feedback { | ||
display: block; | ||
} | ||
``` | ||
## Callbacks | ||
@@ -79,0 +96,0 @@ |
Sorry, the diff of this file is not supported yet
161012
103