Skip to main content

Embedded App Quickstart

Embedding a Superblocks application on a web page is straight-forward and only involves a few steps.

Step 1. Create an application

Before you start embedding a Superblocks app in your website, you'll need an application to embed. Learn how to build a Superblocks App in our 5-min Quickstart Guide.

Once you have an initial version of your app ready, commit & deploy your app.

Step 2. Install the SDK

Install either Superblocks' React or Javascript SDK into your web application's client-side code.

npm install --save @superblocksteam/embed-react

Step 3. Add the embed component

Add the embed component to your HTML on the page you want the app to appear on.

info

Get your app's <SuperblocksEmbed> component by clicking EmbeddingGet embed code in the editor.

import React from 'react';
import { SuperblocksEmbed } from '@superblocksteam/embed-react';

const AppWithEmbed = () => {

return <>
<SuperblocksEmbed
src='https://app.superblocks.com/embed/applications/<APP_ID>'
/>
</>;
}

Step 4. View your embedded app

Run your web app in development mode to view and test the embedded app on your site.

tip

You've now successfully embedded your application! Customize and extend your embed's behavior by exploring the docs below.

What's next?

With a basic embedded app on your website, you're ready to: