AskAI.Chat
Floating chat surface that behaves like a sheet on mobile and a popup on desktop
Overview
Floating chat surface that adapts to device size, sliding up as a bottom sheet on mobile and anchoring as a compact popup on desktop. Pair it with AskAI.Trigger.
Demo
Usage
import { AskAI } from 'peam/client';
export default function Page() {
return (
<AskAI>
<AskAI.Trigger />
<AskAI.Chat />
</AskAI>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | undefined | Custom chat contents. |
| (all) | HTMLDivElement props | — | Accepts all standard div props. |