UNPKG

@rjsf/semantic-ui

Version:

Semantic UI theme, fields and widgets for react-jsonschema-form

16 lines 674 B
import { jsx as _jsx } from "react/jsx-runtime"; import { helpId } from '@rjsf/utils'; import { RichHelp } from '@rjsf/core'; import { Message } from 'semantic-ui-react'; /** 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 (_jsx(Message, { size: 'mini', info: true, id: helpId(fieldPathId), children: _jsx(RichHelp, { help: help, registry: registry, uiSchema: uiSchema }) })); } return null; } //# sourceMappingURL=FieldHelpTemplate.js.map