UNPKG

@rjsf/material-ui

Version:

Material UI 4 theme, fields and widgets for react-jsonschema-form

16 lines 560 B
import { jsx as _jsx } from "react/jsx-runtime"; import FormHelperText from '@material-ui/core/FormHelperText'; 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 { idSchema, help } = props; if (!help) { return null; } const id = helpId(idSchema); return _jsx(FormHelperText, { id: id, children: help }); } //# sourceMappingURL=FieldHelpTemplate.js.map