@wordpress/components
Version:
UI components for WordPress.
25 lines (21 loc) • 457 B
JavaScript
/**
* Internal dependencies
*/
import { useContextSystem } from '../context';
import { useHStack } from '../h-stack';
/**
*
* @param {import('../context').ViewOwnProps<import('./types').Props, 'div'>} props
*/
export function useVStack( props ) {
const { expanded = false, ...otherProps } = useContextSystem(
props,
'VStack'
);
const hStackProps = useHStack( {
direction: 'column',
expanded,
...otherProps,
} );
return hStackProps;
}