Copilot Panel

overlays

Sliding AI copilot panel with chat interface and suggested prompts.

Preview

No preview available

Check the code examples below.

Installation

npm install @launchapp/design-system
Import
import { CopilotPanel } from "@launchapp/design-system";

Examples

AI copilot panel

const [open, setOpen] = React.useState(false);return (  <>    <button type="button" onClick={() => setOpen(true)}>Open Copilot</button>    <CopilotPanel      open={open}      onOpenChange={setOpen}      onSend={async (msg) => "AI response to: " + msg}    />  </>);

Props

PropTypeDefaultDescription
open
booleanControls panel visibility.
onOpenChange
(open: boolean) => voidCalled when open state changes.
onSend
(message: string) => Promise<string>Handles sending a message and returning AI response.