UNPKG

@rjsf/antd

Version:

Ant Design theme, fields and widgets for react-jsonschema-form

15 lines 615 B
import { jsx as _jsx } from "react/jsx-runtime"; import { RichHelp } from '@rjsf/core'; import { helpId } from '@rjsf/utils'; /** The `FieldHelpTemplate` component renders any help desired for a field * * @param props - The `FieldHelpProps` to be rendered */ export default function FieldHelpTemplate(props) { const { fieldPathId, help, uiSchema, registry } = props; if (!help) { return null; } return (_jsx("div", { id: helpId(fieldPathId), className: 'help-block', children: _jsx(RichHelp, { help: help, registry: registry, uiSchema: uiSchema }) })); } //# sourceMappingURL=index.js.map