Skip to main content
Complete, production-ready examples for embedding Kash prediction markets using vanilla HTML and JavaScript. Copy and adapt these examples for your website.

Basic Embed

Simple thread embed with no JavaScript:

Embed with Event Listeners

Listen for events from the embed:

Responsive Sidebar Widget

Compact widget perfect for sidebars:

Multi-Thread Dashboard

Display multiple thread embeds on one page:

Loading States and Error Handling

Robust error handling and fallbacks:

Complete Production Example

Full production-ready example with all best practices:

Next Steps

React Examples

React component examples

Iframe Guide

Complete iframe embedding guide