Adding Widget to Your Framer Site
Last updated
Last updated
Looking to integrate a playable Playgama HTML5 game widget into your Framer project? Here's a complete step-by-step guide using a custom React code component.
A Framer project
A valid Playgama widget_id
(e.g. WA0000000000000
)
Basic knowledge of React and Framer interface
WA0000000000000
):Log in to your .
If you haven’t created a widget yet, do that from your dashboard.
Once it’s ready, open the embed code — your widget_id
is included there.
If the widget already exists, just open its page and click the </> icon to find the embed code.
Create a new project or open an existing one
In the left sidebar, click Code
Click + Add Code File
Name it PlaygamaWidget.tsx
(or .jsx
)
Paste the following code:
🚨 Make sure to insert your actual widget_id
from the embed code.
Go back to the design view (Canvas)
Look for the newly created component named Widget
in the Insert menu
Drag it onto the canvas
Resize it to your desired dimensions (e.g. 510×180) — this controls the size of the game
Click Preview to test the widget
The game will load dynamically via Playgama’s script
Once published, your users will be able to play the game directly on your Framer site
To make the widget fully responsive, wrap it inside a Frame or set its size dynamically using viewport units (vw
, vh
) or auto-scaling logic.
The recommended size for the standard version with 3 games is 510×180 pixels — this helps maintain a neat and well-proportioned appearance on both desktop and mobile screens.
Keep in mind: the maximum game height is 320 pixels.
Go to