@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
14 lines • 571 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
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 DescriptionFieldTemplate(props) {
const { id, description } = props;
if (!description) {
return null;
}
return (_jsx(Text, { size: 'xs', id: id, c: 'gray', className: `armt-template-description`, children: description }));
}
//# sourceMappingURL=DescriptionFieldTemplate.js.map