Skip to content
Kits

ChatWorkspace

A chat that floats as an island over the content or pins beside it as a resizable column, without remounting.

Composition

Floating or pinned chat

  • <ChatWorkspace>
    • <ChatWorkspaceMain>
      • page content
      • <ChatWorkspaceInset />
      </ChatWorkspaceMain>
    • <ChatWorkspacePanel>
      • <ChatLayout>
        • <ChatLayoutHeader>
          • <ChatWorkspaceExpandToggle />
          • <ChatLayoutTitle />
          • <ChatLayoutActions>
            • <ChatWorkspaceDockToggle />
            </ChatLayoutActions>
          </ChatLayoutHeader>
        • <ChatWorkspaceCollapsible>
          • <ChatThread />
          </ChatWorkspaceCollapsible>
        • <ChatComposer />
        </ChatLayout>
      • <ChatWorkspaceResizeHandle />
      </ChatWorkspacePanel>
    </ChatWorkspace>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Chat workspace fold

src/registry/sources/control-ui/chat-workspace-fold.ts

Support
Resize handle

src/registry/sources/control-ui/chat-workspace-resize-handle.tsx

Support
Workspace state

src/registry/sources/control-ui/chat-workspace-state.ts

Support
Motion

src/registry/lib/motion.ts

Util
Button

button

Component
viewTransition

view-transition

Extension

Raw code

Installed component source and support files

src/registry/sources/control-ui/chat-workspace.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-chat-workspace-*
10 knobs