/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/components/src/v-stack/hook.ts
23 строки
518 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import type { WordPressComponentProps } from '../context'; import { useContextSystem } from '../context'; import { useHStack } from '../h-stack'; import type { VStackProps } from './types'; export function useVStack( props: WordPressComponentProps< VStackProps, 'div' > ) { const { expanded = false, alignment = 'stretch', ...otherProps } = useContextSystem( props, 'VStack' ); const hStackProps = useHStack( { direction: 'column', expanded, alignment, ...otherProps, } ); return hStackProps; }