@cloudquery/plugin-ui-sdk
Version:
SDK for CloudQuery Plugin UI configuration
13 lines • 970 B
TypeScript
import { ReactNode } from 'react';
/**
* Returns a helper text for a form field, combining an error message (if present) with additional helper text.
* If an error message is provided, it is displayed first, followed by the helper text.
*
* @param errorMessage - The error message to display, if any.
* @param helperText - Additional helper text or ReactNode to display.
* @returns A string or ReactNode containing the combined error message and helper text.
*
* @public
*/
export declare function getFieldHelperText(errorMessage: string | undefined, helperText: string | ReactNode): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
//# sourceMappingURL=getFieldHelperText.d.ts.map