AI Chat Fancy Stable

ThreadList

Conversation history for a chat sidebar: one row per thread with an unread dot, its last message, and a relative timestamp, plus selection and per-row delete

Preview

Installation

pnpm add fancy-ui-svelte
import { ThreadList } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { ThreadList } from 'fancy-ui-svelte';
</script>

<ThreadList />

Examples

Basic Usage

Props

PropTypeDefaultDescription
threads *ThreadData[]-The conversations to list, in the order they should appear
activeId string-Id of the selected conversation (bindable). A click writes the new id back whether or not onSelect is supplied
onSelect (thread: ThreadData) => void-Called with the conversation the reader picked
onDelete (thread: ThreadData) => void-Supplying it puts a delete button on every row, revealed on hover or focus
label string"Conversations"Accessible name for the list

Slots

SlotDescription
itemReplaces the built-in row body; receives the thread and whether it is the active one
emptyReplaces the built-in "No conversations yet" line