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/AutoSizer.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ High-order component that automatically adjusts the width and height of a single
7
7
| Property | Type | Required? | Description |
8
8
|:---|:---|:---:|:---|
9
9
| children | Function | ✓ | Function responsible for rendering children. This function should implement the following signature: `({ height: number, width: number }) => PropTypes.element`|
10
+
| defaultHeight | Number || Height passed to child for initial render; useful for server-side rendering. This value will be overridden with an accurate height after mounting. |
11
+
| defaultWidth | Number || Width passed to child for initial render; useful for server-side rendering. This value will be overridden with an accurate width after mounting. |
10
12
| disableHeight | Boolean || Fixed `height`; if specified, the child's `height` property will not be managed |
11
13
| disableWidth | Boolean || Fixed `width`; if specified, the child's `width` property will not be managed |
12
14
| nonce | String || Nonce of the inlined stylesheets for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute)|
0 commit comments