@snups/rjsf-mantine
Version:
Mantine theme, fields and widgets for react-jsonschema-form
15 lines • 660 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { RichDescription } from '@snups/rjsf-core';
import { Text } from '@mantine/core';
/** The `DescriptionField` is the template to use to render the description of a field
*
* @param props - The `DescriptionFieldProps` for this component
*/
export default function DescriptionField(props) {
const { id, description, registry, uiSchema } = props;
if (description) {
return (_jsx(Text, { id: id, mt: 3, mb: 'sm', children: _jsx(RichDescription, { description: description, registry: registry, uiSchema: uiSchema }) }));
}
return null;
}
//# sourceMappingURL=DescriptionField.js.map