detect-portrait
v1.0.0
Published
A React component for detecting portrait orientations on mobile.
Downloads
5
Readme
detect-portrait
A React component for detecting portrait orientations on mobile. Used in The Space.
Why is it public domain?
We wanted to give back to our userbase for our devtools, so we'll be freeing some of the components we use in our sites.
Usage
Install:
npm install detect-portraitProps
message: The message the modal displays when the user's device is in portrait mode.
textColor: The color of the modal text.
backgroundColor: The color of the modal background.
Example
<OrientationModal message="Please turn your device to landscape mode 😁" textColor="black" backgroundColor="white"/>