Interface: ThreadTabsProps
Props for ThreadTabs.
Extends
Section titled “Extends”Omit<ThreadSidebarProps,"onHide"|"side">
Properties
Section titled “Properties”activeThreadId?
Section titled “activeThreadId?”
optionalactiveThreadId?:string
Id of the active thread, rendered highlighted.
Inherited from
Section titled “Inherited from”ThreadSidebarProps.activeThreadId
className?
Section titled “className?”
optionalclassName?:string
Extra classes merged onto the sidebar root.
Inherited from
Section titled “Inherited from”isLoading?
Section titled “isLoading?”
optionalisLoading?:boolean
True while the initial list loads (shows a spinner in place of the list).
Inherited from
Section titled “Inherited from”onCancel?
Section titled “onCancel?”
optionalonCancel?: (threadId) =>void
Cancel a thread’s in-flight run. When provided, a streaming row (one in streamingThreadIds) shows a stop button in place of its spinner on hover, so a background run can be cancelled without switching to it.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onCloseTab?
Section titled “onCloseTab?”
optionalonCloseTab?: (threadId) =>void
Take a conversation off the strip. The conversation itself is kept - use ThreadSidebarProps.onDelete to remove it. Per-tab close affordance hidden when omitted.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
onDelete?
Section titled “onDelete?”
optionalonDelete?: (threadId) =>void
Delete a thread. Per-row trash affordance hidden when omitted.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onNew?
Section titled “onNew?”
optionalonNew?: () =>void
Start a fresh conversation. Hidden when omitted.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onRename?
Section titled “onRename?”
optionalonRename?: (threadId,title) =>void
Rename a thread. Per-row edit affordance (inline text field) hidden when omitted.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onSelect
Section titled “onSelect”onSelect: (
threadId) =>void
Switch to a thread.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”openThreadIds
Section titled “openThreadIds”openThreadIds:
string[]
Ids of the conversations open as tabs, left to right. Ids without a matching ThreadSidebarProps.threads entry still render (a brand-new conversation isn’t in the server list yet).
streamingThreadIds?
Section titled “streamingThreadIds?”
optionalstreamingThreadIds?:string[]
Thread ids with a generation still in flight in the background.
Inherited from
Section titled “Inherited from”ThreadSidebarProps.streamingThreadIds
threads
Section titled “threads”threads:
ThreadSummary[]
Threads to list, newest first.