Captain is currently in ALPHA. We are happy to get your feedback
Core API
Interfaces
Hooks Resize Observer.size

Interface: Size

hooks/resize-observer.Size

Represents the size of an HTML element with possible undefined values initially.

Size

Table of contents

Properties

Properties

height

height: undefined | number

The height of the element in pixels, or undefined if not set.

Defined in

hooks/resize-observer.ts:13 (opens in a new tab)


width

width: undefined | number

The width of the element in pixels, or undefined if not set.

Defined in

hooks/resize-observer.ts:12 (opens in a new tab)