@rjsf/core
Version:
A simple React component capable of building HTML forms out of a JSON schema.
20 lines • 996 B
TypeScript
import { ReactElement } from 'react';
import { FormContextType, Registry, RJSFSchema, StrictRJSFSchema, UiSchema } from '@rjsf/utils';
export interface RichHelpProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
/** The description text for a field, potentially containing markdown */
help: string | ReactElement;
/** The uiSchema object for this base component */
uiSchema?: UiSchema<T, S, F>;
/** The `registry` object */
registry: Registry<T, S, F>;
}
/** Renders the given `description` in the props as
*
* @param props - The `RichHelpProps` for this component
*/
declare function RichHelp<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ help, registry, uiSchema, }: RichHelpProps<T, S, F>): string | import("react/jsx-runtime").JSX.Element;
declare namespace RichHelp {
var TEST_IDS: import("@rjsf/utils").TestIdShape;
}
export default RichHelp;
//# sourceMappingURL=RichHelp.d.ts.map