@data-driven-forms/react-form-renderer
Version:
React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.
12 lines • 816 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var SchemaErrorComponent = function (_a) {
var name = _a.name, message = _a.message;
return (_jsxs("div", { style: {
padding: 5,
border: '1px solid #bbb',
borderCollapse: 'collapse',
borderRadius: 2,
}, children: [_jsx("h1", { style: { fontSize: 24, marginBottom: 5 }, children: "Form could not be rendered, because of invalid form schema." }), _jsxs("h2", { style: { fontSize: 20, marginBottom: 5 }, children: [name, ":"] }), _jsx("p", { style: { marginBottom: 5 }, children: message }), _jsx("p", { children: "If you don't know what this error means, please contact site administrator." })] }));
};
export default SchemaErrorComponent;
//# sourceMappingURL=schema-error-component.js.map