diff --git a/components/form/Field.tsx b/components/form/Field.tsx index 854f10e..f40ea98 100644 --- a/components/form/Field.tsx +++ b/components/form/Field.tsx @@ -69,7 +69,7 @@ export interface FieldProps { visibleLabel?: boolean; autoRefresh?: boolean; forceDisabled?: boolean; - description?: string; + description?: string | (() => any); } export const Field: React.FC = ({ fm, @@ -516,7 +516,9 @@ export const Field: React.FC = ({ {description ? ( -
{description}
+
+ {typeof description === "function" ? description() : description} +
) : ( <> )}