0.0.0-development • Published 4 years ago
peerboard-react-components v0.0.0-development
Usage
yarn add peerboard-react-components
or
npm install peerboard-react-components
<PeerboardForum
style={{
// Style the wrapper
}}
forumId={432432432} // Your board id from settings
prefix={'/community'} // Relative path at which the forum is rendered
jwtToken={'...'} // Your integration bearer token from backend
hideMenu={false} // Whether to hide standard menu or not
onLoadFailed={() => {
// Show error
}}
onLoadSuccess={() => {
// Show forum. Note that in order to initialize forum should be rendered with 'display: none' for example.
}}
onTitleChanged={title => window.document.title = "Forum: " + title} // Change your title accordingly
onPathChanged={path => {
// Browser counts iframe state changes.
history.replaceState(null, '', path) // Update address bar. Provided prefix included.
}}
/>
0.0.1
4 years ago
0.0.0-development
4 years ago