Skip to content

Commit d107aa0

Browse files
authored
Fix flexShrink default value in Layout Props docs (#2945)
1 parent 69aa0c3 commit d107aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/layout-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ When `flex` is -1, the component is normally sized according to `width` and `hei
389389

390390
[`flexShrink`](layout-props#flexshrink) describes how to shrink children along the main axis in the case in which the total size of the children overflows the size of the container on the main axis. `flexShrink` is very similar to `flexGrow` and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed.
391391

392-
`flexShrink` accepts any floating point value >= 0, with 1 being the default value. A container will shrink its children weighted by the children’s `flexShrink` values.
392+
`flexShrink` accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the children’s `flexShrink` values.
393393

394394
| Type | Required |
395395
| ------ | -------- |

0 commit comments

Comments
 (0)