PromptBar

Prompt composer with sources, commands, model selection, and dictation.

Installation

Preview

Source

Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.

API Reference

PropTypeDefaultDescription
variant"Rounded" | "Pill""Rounded"Composer shape.
demobooleanfalseRuns the optional guided example.
tallbooleanfalseUses the expanded layout.
placeholderstringTextarea placeholder.
onSend(text: string) => voidReceives submitted prompts.
onConnect(source: string, connected: boolean) => voidReports data-source connection changes.
onModelChange(model: string) => voidReports model selection.