@wordpress/components
Version:
UI components for WordPress.
22 lines (21 loc) • 469 B
JavaScript
// 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