UNPKG

@rjsf/core

Version:

A simple React component capable of building HTML forms out of a JSON schema.

20 lines 1.06 kB
import { ReactElement } from 'react'; import { FormContextType, Registry, RJSFSchema, StrictRJSFSchema, UiSchema } from '@rjsf/utils'; export interface RichDescriptionProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> { /** The description text for a field, potentially containing markdown */ description: 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 `RichDescriptionProps` for this component */ declare function RichDescription<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ description, registry, uiSchema }: RichDescriptionProps<T, S, F>): string | import("react/jsx-runtime").JSX.Element; declare namespace RichDescription { var TEST_IDS: import("@rjsf/utils").TestIdShape; } export default RichDescription; //# sourceMappingURL=RichDescription.d.ts.map