2 variants
Prompt Composer
The box a run starts from: text that grows as you type, slash commands on the keyboard, attachment chips, and one button that is Send or Stop but never both.
Prompt composer
The box a run starts from: text that grows as you type, slash commands on the keyboard, attachment chips, and one button that is Send or Stop but never both.
- usage-report.csv24 KB
Sonnet 4.60/2000
Enter to send, Shift + Enter for a new line
import { PromptComposer } from "@/components/registry/prompt-composer";
export function Composer() {
return (
<PromptComposer
model="Sonnet 4.6"
commands={[
{ name: "explain", description: "Walk through the selection" },
{ name: "test", description: "Write tests for what changed" },
]}
onSubmit={(text) => send(text)}
onStop={() => abort()}
/>
);
}305 more lines ship with an easeUI Pro license.
Buy a licenseInstall
$ bunx --bun shadcn add @easeui-pro/prompt-composer
Prompt bar
A single line pill for a landing page or an empty chat, with starting suggestions that fill the bar for editing instead of sending.
import { PromptBar } from "@/components/registry/prompt-bar";
export function Ask() {
return (
<PromptBar
suggestions={["A pricing page", "A changelog"]}
onSubmit={(prompt) => startRun(prompt)}
/>
);
}106 more lines ship with an easeUI Pro license.
Buy a licenseInstall
$ bunx --bun shadcn add @easeui-pro/prompt-bar