Custom block

import { createForum } from "@peerboard/core"; // Settings -> Hosting -> Path prefix const prefix = "/your-path"; // Settings -> Hosting -> Board ID const boardId = ; // On the page you should have a
as a placeholder const containerHTMLElement = document.getElementById('community'); const options = { prefix, // Recommended setting so that the forum container // will always occupy all available space minHeight: window.innerHeight -
-
, // Update your page title according to the forum state onTitleChanged: title => window.document.title = "Your app community: " + title, onReady: () => { // Here you can safely any loading indicators }, onFail: () => { // Show error to the user }, }; createForum(boardId, containerHTMLElement, options);