Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 14f273c

Browse files
committed
update README
1 parent 86c483c commit 14f273c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ Are you looking for a simple way to create validated forms with React?
66

77
Congratulations! Your search is over, because **`@cat-react/form`** offers you a simple way to create either frontend- or backend-validated forms.
88

9+
```js
10+
<Form>
11+
<MyInput name="email"
12+
validations={{
13+
isEmail: true,
14+
isRequired: true
15+
}}/>
16+
<MyInput name="email_confirm"
17+
validations={{
18+
isRequired: true,
19+
equalsField: 'email'
20+
}}/>
21+
</Form>
22+
```
23+
924
## Installation
1025

1126
## Contribution

0 commit comments

Comments
 (0)