@gechiui/components
Version:
UI components for GeChiUI.
32 lines (27 loc) • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useVStack = useVStack;
var _context = require("../ui/context");
var _hStack = require("../h-stack");
/**
* Internal dependencies
*/
/**
*
* @param {import('../ui/context').GeChiUIComponentProps<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