@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
16 lines (13 loc) • 431 B
JavaScript
import { jsx } from 'react/jsx-runtime';
import { helpId } from '@rjsf/utils';
import { Text } from '@mantine/core';
function FieldHelpTemplate(props) {
const { idSchema, help } = props;
if (!help) {
return null;
}
const id = helpId(idSchema);
return /* @__PURE__ */ jsx(Text, { size: "xs", id, c: "gray", children: help });
}
export { FieldHelpTemplate as default };
//# sourceMappingURL=FieldHelpTemplate.mjs.map