0.4.0 • Published 7 months ago
fogbender-react v0.4.0
fogbender-react
Install
npm install fogbender-react
Or if you are using other package managers like yarn, pnpm or bun:
npm i -g @antfu/ni && ni fogbender-react
Usage
import React from "react";
import { FogbenderSimpleWidget } from "fogbender-react";
export const Example = () => {
const token = {
widgetId: "dzAwMTQ5OTEzNjgyNjkwNzA3NDU2",
customerId: "org123",
customerName: "Org Name",
userId: "example_PLEASE_CHANGE",
userEmail: "user@example.com",
userHMAC: "04b7c1aab187a84bfa3160b99c100df08c78b3a1e25884fc13d8d72a9b96ddc3",
userName: "User Name",
userAvatarUrl:
"https://user-images.githubusercontent.com/7026/108277328-19c97700-712e-11eb-96d6-7de0c98c9e3d.png", // optional
};
return (
<div>
<p>Hello Fogbender</p>
<FogbenderSimpleWidget clientUrl="https://main--fb-client.netlify.app" token={token} />
</div>
);
};
Examples
- https://codesandbox.io/s/fogbender-demo-with-react-w519q?file=/src/index.tsx
- https://codesandbox.io/s/fogbender-demo-with-react-floatie-1j3dtw?file=/src/index.tsx
License
MIT © JLarky
0.4.0
7 months ago
0.2.12
10 months ago
0.2.11
1 year ago
0.2.10
2 years ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.2.3
2 years ago
0.2.2
2 years ago
0.2.4
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago
0.0.2
3 years ago
0.0.1
3 years ago