import { createElement } from "react"; /** * Internal dependencies */ import { contextConnect } from '../context'; import { View } from '../view'; import { useHStack } from './hook'; function UnconnectedHStack(props, forwardedRef) { const hStackProps = useHStack(props); return createElement(View, { ...hStackProps, ref: forwardedRef }); } /** * `HStack` (Horizontal Stack) arranges child elements in a horizontal line. * * `HStack` can render anything inside. * * ```jsx * import { * __experimentalHStack as HStack, * __experimentalText as Text, * } from `@wordpress/components`; * * function Example() { * return ( * * Code * is * Poetry * * ); * } * ``` */ export const HStack = contextConnect(UnconnectedHStack, 'HStack'); export default HStack; //# sourceMappingURL=component.js.map