window.size
The window's width and height.
Usage
Read the current viewport
import { Text, window } from 'kuito';
<Text>{`${window.size.value.width} × ${window.size.value.height}`}</Text>;
<Text>{window.orientation.value === 'landscape' ? 'Wide' : 'Tall'}</Text>;
window.insets.value; // { top, left, bottom, right }Properties and methods 1
| Name | Type | Required | Description |
|---|---|---|---|
valuereadonly | WindowSize | Yes | — |
value — nested fields
value fields
| Name | Type | Required | Description |
|---|---|---|---|
width | number | Yes | — |
height | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.