How to integrate embedded spaces
Integration methods
Tide embedded spaces feature supports two different types of integrations:
Basic HTML integration
Embed the space banner
Insert the following HTML snippet into your website where you want the space banner to appear. Replace [space-id]
with the specific ID of your space. The data-background-color
attribute is optional and can be used to set a custom background color for the space banner. The data-text-color
attribute is also optional and can be used to set a custom text color for the space banner. There's also the possibility to change the modal theme color, which is Dark by default. To set the Light theme simply add the light-mode="true"
parameter.
Integration in a Next.js Website
Insert Script Tag in <Head>
In a Next.js application, due to its server-side rendering, you need to insert the <script>
tag inside the <Head>
component from next/head
. Ensure that this component is in the same component as your div
with the class tide-embedded
.
Demo
Visit the Tide SDK Example page and interact with Tide embedded spaces. This will help you understand how the integration appears and works from a user's perspective.
Last updated