1.0.6 • Published 3 years ago

react-a2hs v1.0.6

Weekly downloads
37
License
MIT
Repository
github
Last release
3 years ago

react-a2hs

Quickly show an installable button for your React PWA

NPM JavaScript Style Guide

Install

npm install --save react-a2hs
yarn add react-a2hs

Usage

import { A2HSProvider } from  'react-a2hs'

const App = () => (
	<A2HSProvider
		title={title}
		position={position}
		{...props}
	>
		{children}
	</A2HSProvider>
)

Props

nametypedefaultinfo
titlestring
titleSizestringh2Options: h1, h2, h3, h4, h5, h6
titleColorstringblack
textstring
textSizeint14Size in px
textColorstringblack
positionstringbottom-leftOptions: bottom_left, bottom_right, top_left, top_right
iconstringList of icons: https://react.semantic-ui.com/elements/icon/
iconSizestringbigOptions: mini, tiny, small, large, big, huge, massive
iconColorstringblack
buttonTextstringYes
buttonTextColorstringblack
buttonBackgroundColorstringwhite
forceShowbooleanfalseUse in development mode to display button without prerequisites

License

MIT © maximegouin

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago