Skip to content

Commit ec30c08

Browse files
author
Kuldeep Saxena
authored
Update README.md
1 parent 2b3d837 commit ec30c08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,13 @@ Build your custom type's components & handle them easily with the help of form b
395395
Use the `customComponents` prop of form builder.
396396
### Prototype
397397
It's an object of key value pair where key will be the `type` of the component & value will be your custom Component.<br/><br/>
398-
```customComponents = { type1: ComponentName1, type2: ComponentName2 .....}```
398+
```customComponents = { type1: {component: ComponentName1, props: Props }, type2: {component: ComponentName2} .....}```
399399

400400
### How To Use
401401
- Define your custom `type` in field's object.
402402
- Form builder extends the props of your component by adding some extra props.
403-
- In you component you can access these props to handle the state of the field.
403+
- You can also pass some extra props in your custom components.
404+
- In your component you can access these props to handle the state of the field.
404405

405406
| Props | Type | Description |
406407
| :------------| :------| :-----|

0 commit comments

Comments
 (0)