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
agentstring—Agent name for new conversations
onSessionCreated(sessionId: string) => void—Called when the first message creates a session
greetingstring"How can I help you?"Greeting heading text
subtitlestring—Subtitle below the greeting
suggestionsChatSuggestion[]—Suggestion prompts to display
suggestionColumns1 | 2 | 32Number of grid columns for suggestions
inputPlaceholderstring—Input placeholder text
inputHintstring—Hint text below the input
allowAttachmentsbooleantrueAllow file attachments
headerReactNode—Custom header content rendered above the input
classNamestring—Additional 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