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