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
Copy file name to clipboardExpand all lines: docs/data/material/customization/spacing/spacing.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,44 @@ const theme = createTheme({
44
44
theme.spacing(2); // = '8px'
45
45
```
46
46
47
+
:::warning
48
+
Note that when spacing is defined as an array, it only works with positive integers that will be used as array indexes.<br />
49
+
It doesn't support all possible signatures of the `theme.spacing()` helper, for example `theme.spacing(0.5)`, `theme.spacing(-1)`, or `theme.spacing(1, 'auto')`.
50
+
51
+
If you must use spacing array, consider using a function signature that can handle all possible signatures of the `theme.spacing()` helper:
0 commit comments