VISUALLIdesign system

App

ChatDock

The chat at the bottom of the app: the latest three turns floating over the canvas, and the Composer. A small cap centered on the Composer's top edge folds the turns down into it, and back — the canvas gets the room, the conversation stays one tap away.

Live previewOpen ↗

Props

export interface ChatDockProps {
  /** <ChatTurn/>s, oldest first — the whole conversation. */ children?: ReactNode;
  /** The <Composer/>. */ composer: ReactNode;
  /** Latest turns shown before the strip scrolls (3). */ visible?: number;
  /** Controlled (e.g. remembered per person). */ folded?: boolean;
  defaultFolded?: boolean;
  onFoldChange?: (folded: boolean) => void;
  /** Fold when the person works on the map (press, scroll or tab into it);
  unfold when they type in the Composer. Default true. */ autoFold?: boolean;
  className?: string
}

Use

import { ChatDock } from '@visualli/design-system/components';

Source: components/src/ · Guidelines: components/catalog/ChatDock/README.md