import { createElement } from "react"; /** * External dependencies */ /** * Internal dependencies */ import { Spacer } from '../spacer'; import { contextConnect, useContextSystem } from '../context'; function UnconnectedInputControlPrefixWrapper(props, forwardedRef) { const derivedProps = useContextSystem(props, 'InputControlPrefixWrapper'); return createElement(Spacer, { marginBottom: 0, ...derivedProps, ref: forwardedRef }); } /** * A convenience wrapper for the `prefix` when you want to apply * standard padding in accordance with the size variant. * * ```jsx * import { * __experimentalInputControl as InputControl, * __experimentalInputControlPrefixWrapper as InputControlPrefixWrapper, * } from '@wordpress/components'; * * @} * /> * ``` */ export const InputControlPrefixWrapper = contextConnect(UnconnectedInputControlPrefixWrapper, 'InputControlPrefixWrapper'); export default InputControlPrefixWrapper; //# sourceMappingURL=input-prefix-wrapper.js.map