UNPKG

@rjsf/core

Version:

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

12 lines 881 B
import { FieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; /** The `LayoutHeaderField` component renders a `TitleFieldTemplate` with an `id` derived from the `fieldPathId` * and whether it is `required` from the props. The `title` is derived from the props as follows: * - If there is a title in the `uiSchema`, it is displayed * - Else, if there is an explicit `title` passed in the props, it is displayed * - Otherwise, if there is a title in the `schema`, it is displayed * - Finally, the `name` prop is displayed as the title * * @param props - The `LayoutHeaderField` for the component */ export default function LayoutHeaderField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=LayoutHeaderField.d.ts.map