Chat Page

A fixed height AI chat page in React with a header, a scrollable thread of user and assistant messages, and a prompt input pinned to the bottom.

src/registry/blocks/chat-page.tsx/r/chat-page.json

Installation#

bash
npx shadcn@latest add @minidev/chat-page

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/chat-page.json

Usage#

tsx
import { ChatPage } from "@/components/ui/chat-page"

export function Example() {
  return <ChatPage />
}

API reference#

ChatPage takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

React only
All AI chat UI components for React