Thread

Thread

Explore the following sections to learn more about Thread features:

Overview

To navigate the list of threads and view them, you must pass the required props: threads and thread.

threads – an array of objects. You can find the object structure on the API – Threads page.

thread – one of the objects from the threads array.

If your thread structure doesn’t match CUI Kit, you can use an Adapter with ready-made solutions for popular models.

Structure

The structure of messages is described on the Message page.

type Thread = {
  id: number | string;
  title: string;
  date?: string;
  messages?: Message[];
} & { isNew?: boolean };