To showcase your Widget on Framer, start by creating a custom component. Click the Framer logo in the top-left corner, navigate to Component → Create From Code. A popup will appear — enter a name for your component, select New Component, and click Create.
STEP 2
Click Assets to locate the FS_WIDGET component in the Components section. Drag and drop it to the desired location on your page to display the Widget. If required, update the layout settings (Fit, Fill, Fill Content, etc.) from the right-hand panel.
STEP 3
Replace the default code with the code provided below.
import React, { useEffect } from "react"
/**
* These annotations control how your component sizes
* Learn more: https://www.framer.com/developers/components/auto-sizing
*
* @framerSupportedLayoutWidth any
* @framerSupportedLayoutHeight auto
*/
export default function FS_WIDGET(props) {
useEffect(() => {
// Function to safely add the script
const loadScript = () => {
return new Promise((resolve, reject) => {
// Create a script element
const script = document.createElement("script")
script.src =
"https://js.feedspace.io/v1/embed/embed.min.js?v=1.0.56"
script.type = "text/javascript"
script.async = true
// Handle script load and error
script.onload = resolve
script.onerror = reject
// Append the script to the document body
document.body.prepend(script)
})
}
// Load the script and handle potential errors
loadScript().catch((error) => {
console.error("Failed to load Feedspace script:", error)
})
// Cleanup the script when the component unmounts
return () => {
const script = document.querySelector(
'script[src="https://js.feedspace.io/v1/embed/embed.min.js?v=1.0.56"]'
)
if (script) {
document.body.removeChild(script)
}
}
}, [])
return (
<div
style={{ ...containerStyle }}
className="feedspace-embed"
data-id="9966af4c-50e6-4901-abc9-1ca0ecde8918"
></div>
)
}
// Styles are written in object syntax
const containerStyle = {
height: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
overflow: "hidden",
}
STEP 4
On Framer, click on 'Publish', then 'Update' to your change.
STEP 5
A live link will be displayed. Clicking it will navigate to the page where the widget is embedded.
STEP 1
Just copy this component to your project and use it anywhere:
Some platforms (like Notion) block external HTML for security reasons. If embedding isn't supported, you can use the shareable link instead, though we don't recommend this method.
Copy the embed link, go to the section of your site or app where you want to display the page, open the embed block, and paste the copied link there.