UNPKG

@wordpress/components

Version:
32 lines (27 loc) 617 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useVStack = useVStack; var _context = require("../context"); var _hStack = require("../h-stack"); /** * Internal dependencies */ /** * * @param {import('../context').ViewOwnProps<import('./types').Props, 'div'>} props */ function useVStack(props) { const { expanded = false, ...otherProps } = (0, _context.useContextSystem)(props, 'VStack'); const hStackProps = (0, _hStack.useHStack)({ direction: 'column', expanded, ...otherProps }); return hStackProps; } //# sourceMappingURL=hook.js.map