PromptBar

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

Installation

This component is primitive-agnostic — same source under both flavors.

Preview

Inspect

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"Active shapeOptional shape override. Defaults to the active BoringUI radius configuration.
demobooleanfalseRuns the optional guided example.
tallbooleanfalseUses the expanded layout.
placeholderstring—Textarea placeholder.
onSend(text: string) => void—Receives submitted prompts.
onConnect(source: string, connected: boolean) => void—Reports data-source connection changes.
onModelChange(model: string) => void—Reports model selection.