POLPOUI

ChatLanding

Full-page landing screen with greeting, input, and suggestion prompts.

ChatLanding provides a centered landing page with a greeting heading, optional subtitle, a ChatInput, and clickable suggestion prompts. It wraps itself in a ChatProvider so it can be used standalone.

How can I help?

Your AI team is ready.

Describe what you need...

Import

import { ChatLanding, type ChatLandingProps } from "@polpo-ai/chat";

Props

PropTypeDefaultDescription
agentstringAgent name for new conversations
onSessionCreated(sessionId: string) => voidCalled when the first message creates a session
greetingstring"How can I help you?"Greeting heading text
subtitlestringSubtitle below the greeting
suggestionsChatSuggestion[]Suggestion prompts to display
suggestionColumns1 | 2 | 32Number of grid columns for suggestions
inputPlaceholderstringInput placeholder text
inputHintstringHint text below the input
allowAttachmentsbooleantrueAllow file attachments
headerReactNodeCustom header content rendered above the input
classNamestringAdditional className on the outer container

Usage

<ChatLanding
  agent="my-agent"
  greeting="What can I help with?"
  subtitle="I can answer questions about your data."
  suggestions={[
    { icon: <SearchIcon />, text: "Search my documents" },
    { icon: <ChartIcon />, text: "Analyze last month's data" },
  ]}
  onSessionCreated={(id) => router.push(`/chat/${id}`)}
/>

On this page