@whop/framer
v0.0.25
Published
Framer SDK for using Whop components in Framer
Readme
@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.
