@rjsf/react-bootstrap
Version:
React Bootstrap theme, fields and widgets for react-jsonschema-form, powered by react-bootstrap
13 lines • 622 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { RichDescription } from '@rjsf/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({ id, description, registry, uiSchema }) {
if (!description) {
return null;
}
return (_jsx("div", { children: _jsx("div", { id: id, className: 'mb-3', children: _jsx(RichDescription, { description: description, registry: registry, uiSchema: uiSchema }) }) }));
}
//# sourceMappingURL=DescriptionField.js.map