UNPKG

@wordpress/components

Version:
49 lines (44 loc) 892 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _utils = require("../utils"); var _hook = require("./hook"); /** * Internal dependencies */ /** * `VStack` (or Vertical Stack) is a layout component that arranges child elements in a vertical line. * * `VStack` can render anything inside. * * @example * ```jsx * import { VStack, Text, View } from `@wordpress/components/ui`; * * function Example() { * return ( * <VStack> * <View> * <Text>Code</Text> * </View> * <View> * <Text>is</Text> * </View> * <View> * <Text>Poetry</Text> * </View> * </VStack> * ); * } * ``` */ const VStack = (0, _utils.createComponent)({ as: 'div', useHook: _hook.useVStack, name: 'VStack' }); var _default = VStack; exports.default = _default; //# sourceMappingURL=component.js.map