logoassistant-ui
shadcn/ui

ThreadList

Overview

The ThreadList component lets the user switch between threads.

Getting Started

Add thread-list

npx shadcn@latest add "https://r.assistant-ui.com/thread-list"

This adds a /components/assistant-ui/thread-list.tsx file to your project, which you can adjust as needed.

Use in your application

/app/page.tsx
import { Thread } from "@/components/assistant-ui/thread";
import { ThreadList } from "@/components/assistant-ui/thread-list";
 
export default function Home() {
  return (
    <div className="grid h-full grid-cols-[200px_1fr]">
      <ThreadList />
      <Thread />
    </div>
  );
}

On this page

Edit on Github