UNPKG

@aokiapp/rjsf-mantine-theme

Version:

Mantine theme, fields and widgets for react-jsonschema-form

18 lines (17 loc) 943 B
import { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { ReactNode } from 'react'; /** `FieldContext passes the items of the `FieldTemplate` down to descendants, to avoid prop drilling. * It is used by the nearest descendant consumer. */ export declare const FieldContext: import("react").Context<{ description: ReactNode; }>; export declare const useFieldContext: () => { description: ReactNode; }; /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component. * * @param props - The `FieldTemplateProps` for this component */ export default function FieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;