Skip to content

useOrientation ​

Category
Browser
Last Changed
11 months ago

Hook that returns the current screen orientation

typescript
import { useOrientation } from '@elysiumorg/solid-use';

Usage ​

typescript
const { angle, type } = useOrientation();

Demo ​

Api ​