@wordpress/components
Version:
UI components for WordPress.
38 lines (33 loc) • 703 B
JavaScript
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { memo } from '@wordpress/element';
/**
* Internal dependencies
*/
import { ContextSystemProvider } from '../context';
const contextValue = {
Text: {
variant: 'muted'
}
};
/**
* @typedef Props
* @property {import('react').ReactNode} [children] The content to display within `FormGroupHelp`.
*/
/**
*
* @param {Props} props
*/
function FormGroupHelp(_ref) {
let {
children
} = _ref;
if (!children) return null;
return createElement(ContextSystemProvider, {
value: contextValue
}, children);
}
export default memo(FormGroupHelp);
//# sourceMappingURL=form-group-help.js.map