diff --git a/packages/ui/src/components/ui/form/form.tsx b/packages/ui/src/components/ui/form/form.tsx index 717df7c..bd186f8 100644 --- a/packages/ui/src/components/ui/form/form.tsx +++ b/packages/ui/src/components/ui/form/form.tsx @@ -48,6 +48,7 @@ export type FormFieldProps< render: (context: RenderContext) => React.ReactElement; label?: string; requiredSign?: boolean; + showErrors?: boolean; } & Omit, 'render'>; export type FormFieldType< @@ -94,6 +95,7 @@ const FormField = < >({ label, requiredSign, + showErrors = true, ...props }: FormFieldProps) => { const { control } = useFormContext(); @@ -118,7 +120,7 @@ const FormField = < requiredSign={requiredSign} label={label} /> - + {showErrors && } ); }}