Multi-source @mention prompt bar with sculpted connector icons and concentric model selector.
"use client"; import { useState } from "react";import { PromptBar } from "@/components/compose/prompt-bar"; export function ComposerExample() { const [model, setModel] = useState("compose-pro"); return ( <PromptBar model={model} onModelChange={setModel} shape="rounded" onSubmit={(prompt, sources) => { console.log("Submitted:", { prompt, sources, model }); }} /> );}Add it with the ComposeUI CLI, or copy the source manually.
model"compose-1" | "compose-pro" | "compose-fast"Currently selected inference profile shown in the dropdown pill.
"compose-pro"shape"rounded" | "pill"Corner geometry of the outer composer shell.
"rounded"sourcesSourceConnector[]Triggerable @mention tools, files, and integrations displayed above the bar.
DEFAULT_SOURCESonSubmit(prompt: string, attached: string[]) => voidInvoked when the user submits via Enter or the primary send button.
Updated December 2026