Chat App

A full agent chat to start from: an app shell whose docked sidebar folds off-canvas when its own container gets too narrow, filled with the workspace tree, transcript, streamed answers, plans, approvals, tool output, code, diffs, images, sources and the composer.

Preview

Chat App preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/chat-app
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

sidebarWidth?
string

Docked sidebar width as a CSS length. Default `17rem`.

17rem
collapseSidebarBelow?
number

Shell width in px under which the sidebar folds off-canvas. Ignored while `open` is controlled — the consumer owns the state then.

600
open?
boolean
—
defaultOpen?
boolean
—
onOpenChange?
((open: boolean) => void)
—
openMobile?
boolean
—
defaultOpenMobile?
boolean
—
onOpenMobileChange?
((open: boolean) => void)
—
style?
SidebarProviderStyle
—
className?
string
—

Updated