ProjectListProps

Unpublished development API. This package is under development and is not available as a published release.

Supplies ordered projects, controlled selection, optional creation intent, and per-project action content.

import type { ProjectListProps } from '@threadplane/react/chat';

Declaration

export interface ProjectListProps  {
  readonly actions?: ProjectActionAdapter | null;
  readonly activeProjectId?: string | null;
  readonly className?: string;
  readonly label?: string;
  readonly newProjectDisabled?: boolean;
  readonly newProjectLabel?: string;
  readonly onNewProject?: () => void;
  readonly onSelect: (projectId: string) => void;
  readonly projects: readonly ProjectListItem[];
  readonly renderActions?: (project: ProjectListItem) => ReactNode;
}

Members

actions

Adds a built-in menu to each row with the commands supplied here, inline rename, and a confirmation before delete. A create command adds the new project button with an inline name editor.

readonly actions?: ProjectActionAdapter | null;

activeProjectId

readonly activeProjectId?: string | null;

className

readonly className?: string;

label

readonly label?: string;

newProjectDisabled

readonly newProjectDisabled?: boolean;

newProjectLabel

readonly newProjectLabel?: string;

onNewProject

readonly onNewProject?: () => void;

onSelect

readonly onSelect: (projectId: string) => void;

projects

readonly projects: readonly ProjectListItem[];

renderActions

readonly renderActions?: (project: ProjectListItem) => ReactNode;