@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
16 lines (12 loc) • 580 B
JavaScript
;
var jsxRuntime = require('react/jsx-runtime');
var core = require('@mantine/core');
var utils = require('@rjsf/utils');
function createErrors(errors, hideError, idSchema) {
if (hideError || !errors || errors.length === 0) {
return null;
}
return /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { id: idSchema && utils.errorId(idSchema.$id), children: errors.map((error, index) => /* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: "red", size: "xs", children: error }, index)) });
}
exports.createErrors = createErrors;
//# sourceMappingURL=createErrors.cjs.map