UNPKG

@aokiapp/rjsf-mantine-theme

Version:

Mantine theme, fields and widgets for react-jsonschema-form

36 lines (33 loc) 694 B
import { jsxs, jsx } from 'react/jsx-runtime'; import { Title } from '@mantine/core'; const REQUIRED_FIELD_SYMBOL = "*"; function TitleField({ title, required, id }) { if (!title) { return null; } return /* @__PURE__ */ jsxs( Title, { order: 5, className: "armt-template-title", id, size: "sm", fw: 500, role: "heading", style: { flexGrow: 0, flexShrink: 0 }, children: [ title, required && /* @__PURE__ */ jsx("span", { className: "required", children: REQUIRED_FIELD_SYMBOL }) ] } ); } export { TitleField as default }; //# sourceMappingURL=TitleFieldTemplate.mjs.map