0.1.2 • Published 2 years ago

react-mobile-signal-view v0.1.2

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

react-mobile-signal-view

react-mobile-signal-view provides simple React Mobile Signal component which can be implemented to show mobile signals in React App.

Screenshot

App Screenshot

Installation

Using NPM:

npm install react-mobile-signal-view

Usage/Example

import SignalView from "react-mobile-signal-view"

# render component 
<SignalView bars='five-bars' strength='good' />

Props Reference

PropDefaultValue
strengthgoodgood, ok, bad
barsstringfirst-bar, second-bar, third-bar, fourth-bar, fifth-bar

Classes to override style

ClassDescription
.signal-sizing-boxto override height and with of container
.mobile-signal-barsto override height and width of bars
.good .signal-barto override GOOD strength color
.ok .signal-barto override OK strength color
.bad .signal-barto override BAD strength color
.signal-bar.first-barto override first bar height
.signal-bar.second-barto override second bar height
.signal-bar.third-barto override third bar height
.signal-bar.fourth-barto override fourth bar height
.signal-bar.fifth-barto override fifth bar height

Authors

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.