screenOrientation
Readable Screen Orientation API. It provides web developers with information about the user's current screen orientation.
Demo
isSupported: No
Orientation Type: portrait-primary
Orientation Angle: 0
Usage
<script lang="ts">
import { screenOrientation } from "svelte-legos";
const data = screenOrientation();
$: ({ isSupported, orientation, angle } = $data);
</script>