--- sidebar_position: 8 --- import Playground from '@site/src/components/Playground'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Gap Gap will add spacing between the rows and columns of a flex container. You can specify if you want the gaps to be between only the rows, only the columns, or both. You can do this by passing in the corresponding gutter value to the API, for example ```cpp YGNodeStyleSetGap(node, YGGutterRow, amount); ``` ```java node.setGap(YogaGutter.ROW, amount); ``` ```typescript node.setGap(Gutter.Row, amount); ``` `} />