1.2.4 • Published 1 year ago
react-sellapp v1.2.4
React Sellapp
Sell.app embed integration for React applications.
Installation
npm install react-sellapp
or
yarn add react-sellapp
Usage
import SellButton from "react-sellapp";
const App = () => {
return <SellButton store={store_id} product={product_id} darkmode={false} />;
};
export default App;
Component props
Parameter | Type | Description |
---|---|---|
store | string \| nunber | Required. Your store ID |
product | string \| numver | The ID of the product you want to show in the pop-up |
variant | string \| number | The ID of the variant you want to show in the pop-up |
darkmode | boolean | Color scheme for the pop-up |
theme | string | HEX color code parameter which styles the CTA button(s) |
label | string | Label of the button |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.