{`"div" | "section" | "none"`}
+ {`{ [k: string]: any; }`}
+ "Hidden" | "Text" | "Textarea" | "Checkbox" | "Dropdown" | "Datepicker" | "Radio" | "Option" | "ErrorLabel" | "Stepper"
Dropdown
, Radio
, Option
boolean
- Radio
options inlined.
- {`{ [k: string]: any; }`}
+ boolean
+ string
string
Checkbox
, Radio
+ string
+ {`{ [k: string]: any; }`}
Checkbox
, Radio
+ Any additional element props to be mapped to the element. Depends on the controlType. Must be a valid prop for that element.
{props.item?.description}
: <>>; + const descriptionItem: ReactNode = props.item?.description ?{props.item?.description}
: <>>; switch (controlType) { case "Textarea": { - // TODO: Map min and max and minLength and Maxlength to Textarea and Text? formItem = ( <> - + {descriptionItem} > ); @@ -281,7 +347,7 @@ const DynamicFormItemComponent: React.FC<{ case "Text": { formItem = ( <> -{item.description}
} +{option?.description}
}