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