AskAI.Trigger
Trigger control that toggles AskAI open state using the default Peam button or custom content
Overview
Button-like trigger that toggles the open state for AskAI.Dialog, AskAI.Chat, or AskAI.Sidepane. Use the default floating Peam button or pass custom content (including asChild) to integrate with your UI.
Demo
Usage
import { AskAI } from 'peam/client';
export default function Page() {
return (
<AskAI>
<AskAI.Trigger inlineButton />
<AskAI.Dialog />
</AskAI>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | Use a custom element via Radix Slot. |
children | ReactNode | undefined | Custom trigger contents. |
inlineButton | boolean | false | Renders the default button without fixed positioning. |
variant | 'icon' | 'iconLabel' | 'iconLabel' | Default Peam button style. |