@aokiapp/rjsf-mantine-corporate
Version:
Corporational variant of theme, based on @aokiapp/rjsf-mantine-theme
17 lines • 725 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Title } from '@mantine/core';
import classes from './requiredHacks.module.css';
/** The `TitleField` is the template to use to render the title of a field
*
* @param props - The `TitleFieldProps` for this component
*/
export default function TitleField({ title, required, id, }) {
if (!title) {
return null;
}
return (_jsxs(Title, { order: 5, className: 'armt-template-title', id: id, size: 'sm', fw: 500, role: 'heading', style: {
flexGrow: 0,
flexShrink: 0,
}, children: [title, required && _jsx("span", { className: classes.requiredPill })] }));
}
//# sourceMappingURL=TitleFieldTemplate.js.map