PluginProbe
BeyondWords – AI audio for publishers / 7.0.0
BeyondWords – AI audio for publishers v7.0.0
7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.7.0 All 43 releases
speechkit / src / editor / components / stack / index.js

index.js in BeyondWords – AI audio for publishers 7.0.0, at src/editor/components/stack/index.js

32 lines 661 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { Flex } from '@wordpress/components';
5
6 /**
7 * Vertical stack with a consistent gap.
8 *
9 * Our controls set `__nextHasNoMarginBottom`, so vertical spacing between
10 * sibling fields is owned here (a single Flex gap), not by per-control margins.
11 *
12 * @param {Object} props Props (forwarded to Flex).
13 * @param {Element} props.children Stack contents.
14 *
15 * @return {Element} The stack.
16 */
17 export function Stack( { children, ...props } ) {
18 return (
19 <Flex
20 direction="column"
21 gap={ 4 }
22 align="stretch"
23 justify="flex-start"
24 { ...props }
25 >
26 { children }
27 </Flex>
28 );
29 }
30
31 export default Stack;
32