UNPKG

@chris-bellman/rjsf-mantine-5-theme

Version:

Mantine 5 theme, fields and widgets for react-jsonschema-form. Based on @aokiapp/rjsf-mantine-theme

16 lines (13 loc) 431 B
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