1.0.1 • Published 9 months ago
@ouroboros/react-offline v1.0.1
@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
.