UNPKG

@wordpress/components

Version:
22 lines (21 loc) 469 B
// packages/components/src/v-stack/hook.ts import { useContextSystem } from "../context"; import { useHStack } from "../h-stack"; function useVStack(props) { const { expanded = false, alignment = "stretch", ...otherProps } = useContextSystem(props, "VStack"); const hStackProps = useHStack({ direction: "column", expanded, alignment, ...otherProps }); return hStackProps; } export { useVStack }; //# sourceMappingURL=hook.js.map