Module

DynamicField

Methods

# inner DynamicField(props) → {React.ReactElement}

A Helper component to check if a field is a cluster field and render the appropriate component
Parameters:
Name Type Description
props object props object
control object react-hook-form control object
field object field object

View Source stories/DynamicField.jsx, line 27

React.ReactElement
Example
<DynamicField
    field={field}
    control={control}
    options={options.fieldOptions || {}}
  />