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

PropTypeDefaultDescription
childrenReactNodeundefinedCustom chat contents.
(all)HTMLDivElement propsAccepts all standard div props.

On this page

GitHubEdit this page on GitHub