@teknim/rjsf-mantine
Version:
Mantine theme, fields and widgets for react-jsonschema-form
18 lines • 779 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getUiOptions, titleId, } from '@rjsf/utils';
import { Title } from '@mantine/core';
/** The `ArrayFieldTitleTemplate` component renders a `TitleFieldTemplate` with an `id` derived from
* the `idSchema`.
*
* @param props - The `ArrayFieldTitleProps` for the component
*/
export default function ArrayFieldTitleTemplate(props) {
const { idSchema, title, uiSchema, registry } = props;
const options = getUiOptions(uiSchema, registry.globalUiOptions);
const { label: displayLabel = true } = options;
if (!title || !displayLabel) {
return null;
}
return (_jsx(Title, { id: titleId(idSchema), order: 4, fw: 'normal', children: title }));
}
//# sourceMappingURL=ArrayFieldTitleTemplate.js.map