UNPKG

@wordpress/components

Version:
8 lines (7 loc) 797 B
{ "version": 3, "sources": ["../../src/v-stack/hook.ts"], "sourcesContent": ["/**\n * Internal dependencies\n */\n\nimport { useContextSystem } from '../context';\nimport { useHStack } from '../h-stack';\nexport function useVStack(props) {\n const {\n expanded = false,\n alignment = 'stretch',\n ...otherProps\n } = useContextSystem(props, 'VStack');\n const hStackProps = useHStack({\n direction: 'column',\n expanded,\n alignment,\n ...otherProps\n });\n return hStackProps;\n}"], "mappings": ";AAIA,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AACnB,SAAS,UAAU,OAAO;AAC/B,QAAM;AAAA,IACJ,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,GAAG;AAAA,EACL,IAAI,iBAAiB,OAAO,QAAQ;AACpC,QAAM,cAAc,UAAU;AAAA,IAC5B,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACD,SAAO;AACT;", "names": [] }