Reference
AI Prompt Input
The prompt vessel: the shared field textarea — self-growing on the machine's autoresize — with the submit seal riding its last line. Around the body, slots answer the composer's anatomy: `header` for attachments riding above, `leading` for the tools at the text's left, `trailing` for the seal itself, `footer` for the tools beneath, and `footer-end` for the controls that close the footer row — the seal falls there by default, so a model picker dropped in rides the send's shoulder. An empty slot renders no part, so the bare vessel stays one quiet line. Controlled — bind `v-model` and take the text on `submit`. Enter sends; Shift+Enter breaks the line. While `busy` the seal becomes a stop seal and Enter holds its breath.
Actions · Attachment · Attachments · CodeBody · CodeCopy · Content · Conversation · Loader · Message · Prompt · PromptEnd · PromptFooter · PromptHeader · PromptLeading · PromptMain · PromptTrailing · ReasoningContent · Response · Root · Source · Sources · Textarea · ToolBody · ToolLabel · ToolStatus · Trigger
#AiPromptInput
The prompt vessel: the shared field textarea — self-growing on the
machine's autoresize — with the submit seal riding its last line.
Around the body, slots answer the composer's anatomy: header for
attachments riding above, leading for the tools at the text's
left, trailing for the seal itself, footer for the tools beneath,
and footer-end for the controls that close the footer row — the
seal falls there by default, so a model picker dropped in rides the
send's shoulder. An empty slot renders no part, so the bare vessel
stays one quiet line. Controlled — bind v-model and take the text
on submit. Enter sends; Shift+Enter breaks the line. While busy
the seal becomes a stop seal and Enter holds its breath.
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | String | "" | The draft in the vessel — bind v-model; it clears itself on a successful submit. |
placeholder | String | "Send a message" | The quiet invitation before the reader types. |
disabled | Boolean | false | Still the words on the canvas, but the submit seal does nothing and Enter stays a line break. |
busy | Boolean | false | The machine is working — the seal becomes a stop seal and Enter holds its breath. |
mentions | Object as PropType<{ items: MentionEntry[]; trigger?: string }> | undefined | Mention candidates for the field: pass the roster and the summon character (@ unless told otherwise) and the vessel rides the textarea. While candidates are up, Enter inserts and the send waits. |
| Event | Payload |
|---|---|
update:modelValue | (_value: string) => true |
submit | (_value: string) => true |
stop | () => true |