Skip to main content
Complete React component examples for embedding Kash prediction markets with TypeScript support and hooks.

Basic Embed Component

Simple reusable thread embed component:
Usage:

Custom Hook for Embed Events

Reusable hook for listening to embed events:
Usage:

Responsive Sidebar Widget

Compact widget component:

Multi-Thread Dashboard

Display multiple threads with dynamic loading:

Error Boundary Wrapper

Graceful error handling:
Usage:

SSR-Safe Embed (Next.js)

Server-side rendering compatible component:

Complete Page Example

Full Next.js page with all features:

Next Steps

HTML Examples

Vanilla JavaScript implementations

Iframe Guide

Complete iframe embedding guide