useOrientation
Detects the current device orientation (portrait or landscape) and listens to changes.
Usage
Basic usage example to quickly see how the useOrientation works.
| Property | Value |
|---|---|
| Angle | 0 |
| Type | landscape-primary |
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.