@boomitra/carbon-calculator 0.2.18 → 1.0.9
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.
- package/README.md +2 -2
- package/dist-package/index.cjs.js +14 -14
- package/dist-package/index.es.js +710 -722
- package/package.json +6 -4
- package/dist-package/carbon-calculator.css +0 -1
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ npm install @boomitra/carbon-calculator
|
|
|
14
14
|
|
|
15
15
|
### 2. Integration
|
|
16
16
|
|
|
17
|
-
Import the component
|
|
17
|
+
Import the component in your application.
|
|
18
18
|
**Note:** You must pass the `host` prop to specify the destination URL (e.g., your checkout page) where the user will be redirected when clicking the "Offset" button.
|
|
19
19
|
|
|
20
20
|
```jsx
|
|
21
21
|
import React from "react";
|
|
22
22
|
import CarbonCalculator from "@boomitra/carbon-calculator";
|
|
23
|
-
|
|
23
|
+
// CSS is automatically injected 🌟
|
|
24
24
|
|
|
25
25
|
function App() {
|
|
26
26
|
const host = "https://your-website.com/checkout"; // URL for redirection
|