@wordpress/components
Version:
UI components for WordPress.
29 lines (25 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useVStack = useVStack;
var _context = require("../ui/context");
var _hStack = require("../h-stack");
/**
* Internal dependencies
*/
function useVStack(props) {
const {
expanded = false,
alignment = 'stretch',
...otherProps
} = (0, _context.useContextSystem)(props, 'VStack');
const hStackProps = (0, _hStack.useHStack)({
direction: 'column',
expanded,
alignment,
...otherProps
});
return hStackProps;
}
//# sourceMappingURL=hook.js.map