@rjsf/fluent-ui
Version:
Fluent UI theme, fields and widgets for react-jsonschema-form
16 lines • 527 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { helpId } from '@rjsf/utils';
import { Text } from '@fluentui/react';
/** 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, { id: id, children: help });
}
//# sourceMappingURL=FieldHelpTemplate.js.map