react-mobile-signal-view provides simple React Mobile Signal component which can be implemented to show mobile signals in React App.
Using NPM:
npm install react-mobile-signal-view
import SignalView from "react-mobile-signal-view"
# render component
<SignalView bars='five-bars' strength='good' />
Prop | Default | Value |
---|---|---|
strength |
good |
good , ok , bad |
bars |
string |
first-bar , second-bar , third-bar , fourth-bar , fifth-bar |
Class | Description |
---|---|
.signal-sizing-box |
to override height and with of container |
.mobile-signal-bars |
to override height and width of bars |
.good .signal-bar |
to override GOOD strength color |
.ok .signal-bar |
to override OK strength color |
.bad .signal-bar |
to override BAD strength color |
.signal-bar.first-bar |
to override first bar height |
.signal-bar.second-bar |
to override second bar height |
.signal-bar.third-bar |
to override third bar height |
.signal-bar.fourth-bar |
to override fourth bar height |
.signal-bar.fifth-bar |
to override fifth bar height |
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.