Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Prompt Input

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/prompt-input

Import the shared styles once in your application.

TSUsage
import PromptInput from '@/components/beui/agents/PromptInput.vue'
import '@/components/beui/styles.css'

API Reference

value?
string
Default—
defaultValue?
string
Default
@update:model-value?
(value: string) => void
Default—
models?
PromptModel[]
Default[]
v-model:model?
string
Default—
defaultModel?
string
Default—
actions?
PromptAction[]
Default[]
@action?
(value: string) => void
Default—
@submit?
(value: string, model?: string) => void
Default—
loading?
boolean
Default—
@stop?
() => void
Default—
minRows?
number
Default2
maxRows?
number
Default8
#leading-action?
slot
Default—
labels?
Labels

Override any built-in string.

Default—
class?
string
Default—
v-model?
string
Default—
disabled?
boolean
Default—
placeholder?
string
Default—
ariaLabel?
string
Default—
@value-change?
(value: string) => void
Default—
@model-change?
(value: string) => void
Default—
@keydown?
(event: KeyboardEvent) => void
Default—
#model-icon?
{ model: PromptModel }

Replaces the icon of a model row and of the trigger.

Default—
#action-icon?
{ action: PromptAction }

Replaces the icon of an action row.

Default—

Composition

Place the prompt beside the transcript so drafting never becomes part of the scrolling message history.

Chat
├── MessageScroller
│   └── MessageGroup
└── PromptInput

Note: Message Scroller keeps the conversation stable around the composer. Tool Approval temporarily replaces freeform input with scoped permission. Approval Card collects structured human input during a paused run.

How it works

The composer is the handoff point between a person and an agent. It should keep the current instruction editable, make available capabilities discoverable, and clearly separate sending from stopping active work.

Also on React Native. A chat composer with attachments, voice and stop.(opens in a new tab)

Updated