Prompt Bar

Composer with @ sources, / commands, model picker, and dictation.

Installation

pnpm dlx shadcn@latest add @ward/prompt-bar

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/prompt-bar.json

Usage

import PromptBar from "@/components/ward/PromptBar";
<PromptBar
  variant="Pill"
  demo={false}
  placeholder="Ask anything"
  onSend={(text) => console.log(text)}
/>

Props

PropTypeDefaultDescription
variant"Rounded" | "Pill""Rounded"Corner shape of the composer and its controls: rounded card corners or fully round.
demobooleantrueRuns the self-playing walkthrough of the menus and model picker until the user interacts; turn it off when embedding in a real surface.
tallbooleanfalseUses the larger hero size, with a multi-line input and the controls on their own row.
placeholderstring-Input placeholder text; falls back to 'Write a message…'.
onSend(text: string) => void-Called with the trimmed draft when the user sends.

Ward · Version 1.1.0 · Registry manifest