Drop-in chat shell composing a scrollable message list with an input composer at the bottom. Supports user/assistant text bubbles, error states, attachment chips, and a centered empty state. Self-contained port from 21st.dev Agent Elements.
import { AgentChat } from "@/components/ui/agent-chat"; export default function EmptyCenteredDemo() { return ( <div className="w-full h-screen p-4 bg-neutral-50 dark:bg-neutral-950"> <div className="w-full max-w-[680px] h-full mx-auto rounded-xl border border-neutral-200 dark:border-neutral-800 overflow-hidden bg-white dark:bg-neutral-900"> <AgentChat messages={[]} status="ready" onSend={() => {}} onStop={() => {}} emptyStatePosition="center" /> </div> </div> ); }
Part of Agent Elements — browse the full library on 21st.dev.