Skip to content

Commit f0485fe

Browse files
Update sizing.md to clarify (0, 1] behavior.
Signed-off-by: Matthias <18034092+matthias-ccri@users.noreply.github.com>
1 parent a38ad4b commit f0485fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/data/system/sizing/sizing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Otherwise, it is directly set on the CSS property.
1919

2020
```jsx
2121
<Box sx={{ width: 1/4 }}> // Equivalent to width: '25%'
22-
<Box sx={{ width: 300 }}> // Numbers are converted to pixel values.
22+
<Box sx={{ width: 300 }}> // Numbers above 1 are treated as pixel values.
2323
<Box sx={{ width: '75%' }}> // String values are used as raw CSS.
24-
<Box sx={{ width: 1 }}> // 100%
24+
<Box sx={{ width: 1 }}> // 100% -- numbers in the range `(0, 1]` are treated as percentage values from 0 to 100%.
2525
```
2626

2727
## Width

0 commit comments

Comments
 (0)