File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -395,12 +395,13 @@ Build your custom type's components & handle them easily with the help of form b
395395Use the ` customComponents ` prop of form builder.
396396### Prototype
397397It'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| :------------| :------| :-----|
You can’t perform that action at this time.
0 commit comments