1.0.2 • Published 11 months ago
@ouroboros/react-offline v1.0.2
@ouroboros/react-offline
A React component that displays a message when the user is offline.
Installation
npm
npm install @ouroboros/react-offlineUsing
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.