diff --git a/src/components/ui/auto-form/fields/textarea.tsx b/src/components/ui/auto-form/fields/textarea.tsx index 91b74af..92dece7 100644 --- a/src/components/ui/auto-form/fields/textarea.tsx +++ b/src/components/ui/auto-form/fields/textarea.tsx @@ -14,14 +14,18 @@ export default function AutoFormTextarea({ fieldConfigItem, fieldProps, }: AutoFormInputComponentProps) { + const { showLabel: _showLabel, ...fieldPropsWithoutShowLabel } = fieldProps; + const showLabel = _showLabel === undefined ? true : _showLabel; return ( - - {label} - {isRequired && *} - + {showLabel && ( + + {label} + {isRequired && *} + + )} -