Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep Saxena authored Sep 22, 2017
1 parent 2b3d837 commit ec30c08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,13 @@ Build your custom type's components & handle them easily with the help of form b
Use the `customComponents` prop of form builder.
### Prototype
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/>
```customComponents = { type1: ComponentName1, type2: ComponentName2 .....}```
```customComponents = { type1: {component: ComponentName1, props: Props }, type2: {component: ComponentName2} .....}```

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

| Props | Type | Description |
| :------------| :------| :-----|
Expand Down

0 comments on commit ec30c08

Please sign in to comment.