File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -225,14 +225,14 @@ const returnObj = useDimensions(options?: object);
225225
226226It'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
You can’t perform that action at this time.
0 commit comments