Bus UI Assistant
AIThreadList keeps thread navigation explicit.
Use it when the assistant surface needs a dedicated thread chooser with optional archive actions and an active row marker.
Public API
AIThreadList(p AIThreadListProps) gx.Node
When to use it
Use AIThreadList for sidebars, split workbenches, or thread pickers
that need explicit selection and archive affordances.
Key props
Threads, ActiveThread, OnSelect,
OnArchive, and Attrs.
Example
Go API
import (
gx "github.com/busdk/bus-gx/pkg/gx"
assistantui "github.com/busdk/bus-ui/pkg/assistantui"
)
node := assistantui.AIThreadList(assistantui.AIThreadListProps{
Threads: []assistantui.AIThreadSummary{{ID: "thread-1", Title: "Draft review"}},
})
html, err := gx.RenderHTML(node)
.gx source
In .gx source, author the visible component state as GX markup.
Keep the Go API block above for the package helper or render-boundary call.
package busuiexamples
import gx "github.com/busdk/bus-gx/pkg/gx"
func AIThreadListExample() gx.Node {
return <nav class="ai-thread-list" aria-label="Threads">
<a aria-current="page" href="/threads/thread-1"><Text value={"Draft review"}></Text></a>
</nav>
}
Related
Return to Assistant or the Bus UI reference.