npm.io
0.0.25 • Published 9 months ago

@whop/framer

Licence
MIT
Version
0.0.25
Deps
1
Size
16 kB
Vulns
0
Weekly
0

@whop/framer

To embed Whop checkout in a Framer project, you can utilize Framer Code components with the Whop React SDK.

WhopEmbeddedCheckout

Step 1: Create a new Framer Code component

Navigate to the Assets tab in your framer project, click the + button next to Code and select New Code File.

Step 2: Add the checkout embed code component

You do not have to install the package explicitly. Framer will automatically detect and install the package for you.

Paste the following code into the editor:

import {
  WhopFramerCheckoutEmbed,
  propertyControls,
} from "@whop/framer/checkout";
import { addPropertyControls } from "framer";

/**
 * @framerSupportedLayoutWidth auto
 * @framerSupportedLayoutHeight auto
 */
export default function WhopCheckoutEmbed(props) {
  return <WhopFramerCheckoutEmbed {...props} />;
}

addPropertyControls(WhopCheckoutEmbed, propertyControls);

You can now use the checkout embed component in your project and configure it through the framer interface.

Keywords