@wordpress/components
Version:
UI components for WordPress.
22 lines (21 loc) • 490 B
JavaScript
// packages/components/src/v-stack/hook.ts
import { useContextSystem } from "../context/index.mjs";
import { useHStack } from "../h-stack/index.mjs";
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.mjs.map