@ouroboros/react-offline
v1.0.1
Published
Offline Component. Displayed when the browser is no longer connected to the network/internet.
Downloads
4
Maintainers
Readme
@ouroboros/react-offline
A React component that displays a message when the user is offline.
Installation
npm
npm install @ouroboros/react-offline
Using
import Offline from '@ouroboros/react-offline';
function App(props) {
return (
<Offline />
);
}
Props
| Name | Type | Required | Description | |--|--|--|--| | message | string | no | Default, "You are not online! Please check your network connection." | | position | "bottom" | "top" | no | Default, "top" |
Style
You can set your own styles using the #oc_offline ID, or import / include node_modules/@ouroboros/react-offline/style.css
.