You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{! multiple grid items here, with a gap of 16px between them }}
47
+
</Hds::Layout::Grid>
48
+
```
49
+
50
+
To differentiate the vertical and horizontal spacing between items when they wrap on multiple rows, provide an array of two values to the `@gap` argument:
with a vertical gap of 16px and an horizontal one of 48px
57
+
}}
58
+
</Hds::Layout::Grid>
59
+
```
60
+
61
+
The first value in the array refers to the vertical gap between “rows” of items (`row-gap` in CSS), the second one to the horizontal spacing between “columns” of items (`column-gap` in CSS).
62
+
63
+
The `@gap` argument accepts only **pre-defined values**, it can’t be used to provide custom spacing values. Refer to the [Component API](#component-api) section for details on which values are accepted.
64
+
65
+
If you need to provide custom spacing values, see below how you can use a special escape hatch for this.
66
+
67
+
!!! Warning
68
+
69
+
**Important**
70
+
71
+
The **pre-defined value(s)** passed to the `@gap` argument **must be string(s)**, not numbers!
72
+
73
+
!!!
74
+
75
+
#### Non-standard gap values
76
+
77
+
If you absolutely have to use non-standard spacing value(s) for the grid `gap`, you can use the internal `--hds-layout-grid-row-gap` and `--hds-layout-grid-column-gap` CSS variables and pass custom values to them (e.g., via a local CSS variable or an inline style):
0 commit comments