[release-11.5.2] grafana-ui: Update InlineField error prop type to React.ReactNode (#100373)

grafana-ui: Update InlineField error prop type to React.ReactNode (#100347)

(cherry picked from commit 2518012569)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-02-10 18:17:07 +02:00
committed by GitHub
co-authored by Alex Khomenko
parent 100c91ca14
commit f73c2fdf7a
@@ -1,5 +1,5 @@
import { cx, css } from '@emotion/css';
import { cloneElement } from 'react';
import { cloneElement, ReactNode } from 'react';
import { GrafanaTheme2 } from '@grafana/data';
@@ -23,7 +23,7 @@ export interface Props extends Omit<FieldProps, 'css' | 'horizontal' | 'descript
/** Make field's background transparent */
transparent?: boolean;
/** Error message to display */
error?: string | null;
error?: ReactNode;
htmlFor?: string;
/** Make tooltip interactive */
interactive?: boolean;