react-battery-level 0.1.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,7 +26,7 @@ npm install react-battery-level --save
26
26
 
27
27
  ```jsx
28
28
  import { useState } from "react";
29
- import BatteryLevel from "./BatteryLevel";
29
+ import BatteryLevel from "react-battery-level";
30
30
 
31
31
  function App() {
32
32
  const [gauge, setGauge] = useState(75);
@@ -54,7 +54,7 @@ export default App;
54
54
  | Prop | Type | Default | Description |
55
55
  | ----------------------- | -------------------- | ----------- | ------------------------------------------------------ |
56
56
  | `width` | `number` \| `string` | `"100%"` | Optional. The width of the SVG battery icon. |
57
- | `height` | `number` \| `string` | `"auto"` | Optional. The height of the SVG battery icon. |
57
+ | `height` | `number` \| `string` | `"100%"` | Optional. The height of the SVG battery icon. |
58
58
  | `gauge` | `number` | None | Required. The charge level of the battery (0-100). |
59
59
  | `gaugeColor` | `string` | `"#6EF47A"` | Optional. The color of the battery fill. |
60
60
  | `isCharging` | `boolean` | `false` | Required. Indicates if the battery is charging. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-battery-level",
3
- "version": "0.1.3",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "description": "Simple customizable react battery component",
6
6
  "main": "dist/index.js",