1.0.1 • Published 9 months ago

@ouroboros/react-offline v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@ouroboros/react-offline

npm version MIT License

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 />
	);
}

Example image of component in use

Props

NameTypeRequiredDescription
messagestringnoDefault, "You are not online! Please check your network connection."
position"bottom" | "top"noDefault, "top"

Style

You can set your own styles using the #oc_offline ID, or import / include node_modules/@ouroboros/react-offline/style.css.

1.0.1

9 months ago

1.0.0

9 months ago