Skip to content

Commit 57bd759

Browse files
committed
Update Readme
1 parent a4e653a commit 57bd759

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ const returnObj = useDimensions(options?: object);
225225
226226
It's returned with the following properties.
227227
228-
| Key | Type | Default | Description |
229-
| ------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------- |
230-
| `observe` | function | | To set a target element for measuring or re-start observing the current target element. |
231-
| `unobserve` | function | | To stop observing the current target element. |
232-
| `width` | number | | The width of the target element in pixel. |
233-
| `height` | number | | The height of the target element in pixel. |
234-
| `currentBreakpoint` | string | | Indicates the current breakpoint of the [responsive components](#responsive-components). |
235-
| `entry` | object | | The [ResizeObserverEntry](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) of the target element. |
228+
| Key | Type | Default | Description |
229+
| ------------------- | -------------- | ------- | ---------------------------------------------------------------------------------------------------------------------- |
230+
| `observe` | function | | To set a target element for measuring or re-start observing the current target element. |
231+
| `unobserve` | function | | To stop observing the current target element. |
232+
| `width` | number or null | null | The width of the target element in pixel. Null while target has not mounted. |
233+
| `height` | number or null | null | The height of the target element in pixel. Null while target has not mounted.Z |
234+
| `currentBreakpoint` | string | | Indicates the current breakpoint of the [responsive components](#responsive-components). |
235+
| `entry` | object | | The [ResizeObserverEntry](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) of the target element. |
236236
237237
### Parameter
238238

0 commit comments

Comments
 (0)