Discussion Thread
Render a forum-style reply thread with controlled data and focus signals.
Host applications own the reply list and push updates via the replies signal. Tree navigation, view modes, collapse, and custom render regions ship in Phase 2.
- Embedding a reply tree on a post detail page or review surface.
- Building a headless discussion UI where the host controls persistence and transport.
- Customizing meta/footer regions via Leptos slot children and
eventscallbacks.
- Hold replies in a
RwSignalor server-backed signal and passSignal::deriveintoreplies. - Control focus with
focusandset_focusfor drill-in navigation. - Pass optional Leptos slot children for toolbar, empty state, composer, and reply regions.
- Wire side effects through
DiscussionEvents(on_submit,on_focus_change, etc.).
Sample design-review thread
Nested card thread with markdown, OP brand card, and viewer accent when current_user_id matches.
Main message with markdown and a design link.
Agree — let's track open questions here.
I'll draft the migration checklist.
Depth-3 reply for tree testing.
Separate branch at L1.
Based on the thread, the default depth is 4.