import { createElement } from "react"; /** * External dependencies */ /** * Internal dependencies */ import { contextConnect } from '../context'; import { View } from '../view'; import { useVStack } from './hook'; function UnconnectedVStack(props, forwardedRef) { const vStackProps = useVStack(props); return createElement(View, { ...vStackProps, ref: forwardedRef }); } /** * `VStack` (or Vertical Stack) is a layout component that arranges child * elements in a vertical line. * * `VStack` can render anything inside. * * ```jsx * import { * __experimentalText as Text, * __experimentalVStack as VStack, * } from `@wordpress/components`; * * function Example() { * return ( * * Code * is * Poetry * * ); * } * ``` */ export const VStack = contextConnect(UnconnectedVStack, 'VStack'); export default VStack; //# sourceMappingURL=component.js.map