UNPKG

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

Version:

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

41 lines (36 loc) 810 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var jsxRuntime = require('react/jsx-runtime'); var core = require('@mantine/core'); const REQUIRED_FIELD_SYMBOL = "*"; function TitleField({ title, required, id }) { if (!title) { return null; } return /* @__PURE__ */ jsxRuntime.jsxs( core.Title, { order: 5, className: "armt-template-title", id, size: "sm", fw: 500, role: "heading", pt: "xs", style: { flexGrow: 0, flexShrink: 0 }, children: [ title, required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "required", children: REQUIRED_FIELD_SYMBOL }) ] } ); } exports.default = TitleField; //# sourceMappingURL=TitleFieldTemplate.cjs.map