@aokiapp/rjsf-mantine-theme
Version:
Mantine theme, fields and widgets for react-jsonschema-form
16 lines • 550 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { helpId } from '@rjsf/utils';
import { Text } from '@mantine/core';
/** The `FieldHelpTemplate` component renders any help desired for a field
*
* @param props - The `FieldHelpProps` to be rendered
*/
export default function FieldHelpTemplate(props) {
const { idSchema, help } = props;
if (!help) {
return null;
}
const id = helpId(idSchema);
return (_jsx(Text, { size: 'xs', id: id, c: 'gray', children: help }));
}
//# sourceMappingURL=FieldHelpTemplate.js.map