Skip to content

Prompt Input

Form InputsSince 0.13.0

The composer of a chat or assistant. An auto-growing text field where Enter sends and Shift+Enter adds a line (or Ctrl/Cmd+Enter sends and Enter adds a line), attachments by button, paste, or drop with type, size, and count limits, an optional character or token counter (with a hook for your tokenizer), a Send button that turns into Stop while a reply streams, and an optional suggestions popup for slash commands or mentions. It is a form control like Textarea: label, help text, validation, and Form integration. Chat uses it as its composer; it also works on its own.

  • Enter to sendEnter sends and Shift+Enter adds a line, or switch to Ctrl/Cmd+Enter; IME composition never sends by accident.
  • Grows with the textThe field grows from one row up to maxRows, then scrolls, without layout jumps.
  • AttachmentsAttach by button, paste, or drop, with type, size, and count limits, removable chips, and announcements.
  • Send becomes StopWhile a reply streams, the Send button turns into Stop and the field stays editable for the next message.
  • Commands and mentionsTrigger characters such as / and @ open a keyboard-driven suggestions list from your own data.
  • A real form controlLabel, help text, validation, a character or token counter hook, and Form integration like every other field.

Use it for

  • Writing a message or prompt to an assistant, a support agent, or a colleague.
  • A short text that is sent rather than saved, with optional files.
  • Commands or mentions picked from a list while typing (slash commands, @mentions).

Use something else for

  • Long form text that is saved with a form: use Textarea.
  • Formatted text: use Rich Text Editor.
  • Single-line values: use Text Input.
Anatomy
<div class="aui-field aui-prompt-input">
<label class="aui-field__label" for="ta">Message</label>
<div class="aui-field__description">...</div> (description)
<div class="aui-prompt-input__box">
<ul class="aui-prompt-input__attachments" aria-label="Attachments">
<li class="aui-prompt-input__chip">[file icon] report.pdf 120 kB <button aria-label="Remove report.pdf"></button></li>
</ul>
<textarea id="ta" class="aui-prompt-input__textarea" aria-multiline="true"></textarea>
<div class="aui-prompt-input__toolbar">
<button class="aui-prompt-input__attach" aria-label="Attach files"></button> (attachments)
<input type="file" hidden-by-css>
<span class="aui-prompt-input__spacer"></span>
<div class="aui-field__counter">12 characters remaining</div> (showCounter)
<button class="aui-prompt-input__send" aria-label="Send message | Stop generating"></button>
</div>
<ul class="aui-prompt-input__suggestions" role="listbox"> (triggers, while open)
<li role="option" aria-selected="true">/summarize <span>Summarize the conversation</span></li>
</ul>
</div>
<div class="aui-prompt-input__hint">Enter to send, Shift+Enter for a new line</div> (showHint)
<div class="aui-field__error">...</div>
</div>

Use the bar above each frame to switch theme, density, direction, and locale.

The part of the Assistant showcase that uses Prompt Input. Change its options, use it with the keyboard, and watch the event log; the link in the frame opens the full showcase. The bar above the frame switches theme, density, direction, and locale.

Showcase source
// Assistant showcase: an HR assistant answering from a simulated streaming server (word by word,
// with realistic delays, abortable by Stop), suggestion chips, a reply that fails on purpose and
// recovers with Retry, feedback and attachment events in the log, and a composer with attachments
// and slash commands. Every answer is canned text; nothing leaves the page.
import { instant, plainDate } from '@absoluteui/core';
import { createBusinessCalendar } from '@absoluteui/components/business-calendar';
import { Chat, type ChatRetryDetail, type ChatSendDetail } from '@absoluteui/components/chat';
import type { PromptSuggestion } from '@absoluteui/components/prompt-input';
import { action, annotate, choice, createShowcase, hostIn, toggle, wait } from './kit.js';
const sc = createShowcase({
title: 'Assistant',
description: 'Ask the HR assistant a question or pick a suggestion: the answer streams in word by word. Press Stop to stop it, rate replies, attach files, or type / for commands.',
simulated: true,
});
const ANSWERS: readonly { readonly match: RegExp; readonly text: string }[] = [
{
match: /leave|holiday|vacation|time off/i,
text: 'You have **14 days** of annual leave left this year.\n\n- **Carry over:** up to 5 days into next year\n- **Next public holiday:** see the team calendar\n\nTo request leave, open *Time off* and choose **New request**.',
},
{
match: /payslip|salary|pay/i,
text: 'Payslips are published on the **last working day** of each month.\n\n1. Open *My pay*\n2. Choose the month\n3. Download the PDF\n\nQuestions about deductions go to [the payroll team](https://example.com/payroll).',
},
{
match: /expense|receipt/i,
text: 'Submit expenses within **30 days**. Attach the receipt and pick a category:\n\n```text\nTravel up to 250 EUR per night\nMeals up to 45 EUR per day\nEquipment needs manager approval\n```',
},
];
const FALLBACK = 'I can help with **leave**, **payslips**, and **expenses**. Try asking "How much leave do I have?".';
let failNext = false;
let wordDelay = 70;
/** The simulated streaming server: words with jittered delays; Stop aborts the wait. */
async function* answer(question: string, signal: AbortSignal): AsyncGenerator<string> {
await wait(450, signal).catch(() => undefined);
const text = ANSWERS.find((a) => a.match.test(question))?.text ?? FALLBACK;
const fail = failNext;
failNext = false;
const words = text.split(/(?<= )/);
for (const [i, word] of words.entries()) {
if (signal.aborted) return;
if (fail && i === 6) throw new Error('503 Service Unavailable');
try {
await wait(wordDelay * (0.5 + Math.random()), signal);
} catch {
return;
}
yield word;
}
}
const COMMANDS: readonly PromptSuggestion[] = [
{ insert: '/leave', label: '/leave', description: 'Ask about your leave balance' },
{ insert: '/payslip', label: '/payslip', description: 'Find your latest payslip' },
{ insert: '/expenses', label: '/expenses', description: 'Expense rules and limits' },
];
// Chat includes its prompt input.
const host = annotate(hostIn(sc.stage), ['chat', 'prompt-input']);
host.style.setProperty('block-size', '34rem');
const now = Date.now();
const chat = Chat.create(host, {
label: 'Conversation with the HR assistant',
authors: { assistant: { name: 'HR assistant' } },
businessCalendar: createBusinessCalendar({ holidays: [{ date: plainDate(2026, 12, 25), name: 'Christmas Day', yearly: true }, { date: plainDate(2026, 1, 1), name: 'New Year', yearly: true }] }),
suggestions: [
{ id: 'leave', label: 'How much leave do I have?' },
{ id: 'payslip', label: 'Where is my payslip?' },
{ id: 'expenses', label: 'What are the expense limits?' },
],
prompt: {
placeholder: 'Ask the HR assistant',
attachments: true,
accept: ['.pdf', '.png', '.jpg', '.txt'],
maxFileSize: 5 * 1024 * 1024,
showHint: true,
triggers: [{ char: '/', suggest: (query) => COMMANDS.filter((c) => c.label.slice(1).startsWith(query)) }],
},
messages: [
{ id: 'w1', role: 'system', text: 'Conversation started' },
{ id: 'w2', role: 'assistant', text: 'Hello! I answer questions about **leave**, **payslips**, and **expenses**. What would you like to know?', timestamp: instant(now - 60_000) },
],
});
sc.listen(host, ['aui-send', 'aui-stop', 'aui-retry', 'aui-feedback', 'aui-suggestion', 'aui-attachment-open'], 'chat');
host.addEventListener('aui-send', (e) => {
const { text } = (e as CustomEvent<ChatSendDetail>).detail;
void chat.stream((signal) => answer(text, signal), { errorMessage: 'The assistant is unavailable right now. Try again.' });
});
host.addEventListener('aui-retry', (e) => {
const { id, prompt } = (e as CustomEvent<ChatRetryDetail>).detail;
void chat.stream((signal) => answer(prompt?.text ?? '', signal), { id, errorMessage: 'The assistant is unavailable right now. Try again.' });
});
action(sc, 'Fail the next reply', () => {
failNext = true;
sc.log('server', 'the next reply fails after a few words');
}, ['chat']);
action(sc, 'Colleague typing', () => {
chat.update({ typing: chat.options.typing ? null : 'Grace Hopper' });
}, ['chat']);
choice(
sc,
'Reply speed',
[
{ value: 'normal', label: 'Normal' },
{ value: 'slow', label: 'Slow' },
{ value: 'fast', label: 'Fast' },
],
'normal',
(speed) => {
wordDelay = speed === 'slow' ? 220 : speed === 'fast' ? 20 : 70;
},
['chat'],
);
choice(
sc,
'Reply format',
[
{ value: 'markdown', label: 'Markdown' },
{ value: 'text', label: 'Plain text' },
],
'markdown',
(assistantFormat) => {
chat.update({ assistantFormat });
},
['chat'],
);
toggle(sc, 'Avatars', true, (showAvatars) => {
chat.update({ showAvatars });
}, ['chat']);
toggle(sc, 'Timestamps', true, (showTimestamps) => {
chat.update({ showTimestamps });
}, ['chat']);
toggle(sc, 'Send with Ctrl+Enter', false, (on) => {
chat.update({ prompt: { ...chat.options.prompt, submitKey: on ? 'mod-enter' : 'enter' } });
}, ['chat', 'prompt-input']);
action(sc, 'Clear conversation', () => {
chat.clear();
}, ['chat']);
import { PromptInput, type PromptInputSendDetail } from '@absoluteui/components/prompt-input';
const host = document.createElement('div');
document.body.append(host);
PromptInput.create(host, { label: 'Message', hideLabel: true, placeholder: 'Ask a question', showHint: true });
host.addEventListener('aui-send', (event) => {
const { text } = (event as CustomEvent<PromptInputSendDetail>).detail;
host.dataset.lastSent = text;
});
import { PromptInput } from '@absoluteui/components/prompt-input';
const host = document.createElement('div');
document.body.append(host);
PromptInput.create(host, {
label: 'Message',
attachments: true,
accept: ['image/*', '.pdf'],
maxFiles: 3,
maxFileSize: 5 * 1024 * 1024,
});
import { PromptInput } from '@absoluteui/components/prompt-input';
const host = document.createElement('div');
document.body.append(host);
const prompt = PromptInput.create(host, { label: 'Message' });
let controller: AbortController | null = null;
host.addEventListener('aui-send', () => {
controller = new AbortController();
prompt.update({ status: 'streaming' });
setTimeout(() => {
prompt.update({ status: 'idle' });
}, 2000);
});
host.addEventListener('aui-stop', () => {
controller?.abort();
prompt.update({ status: 'idle' });
});
import { PromptInput, type PromptSuggestion } from '@absoluteui/components/prompt-input';
const commands: PromptSuggestion[] = [
{ insert: '/summarize', label: '/summarize', description: 'Summarize the conversation' },
{ insert: '/translate', label: '/translate', description: 'Translate the last reply' },
];
const people = ['Ada Lovelace', 'Grace Hopper', 'Alan Turing'];
const host = document.createElement('div');
document.body.append(host);
PromptInput.create(host, {
label: 'Message',
triggers: [
{ char: '/', suggest: (query) => commands.filter((c) => c.label.slice(1).startsWith(query)) },
{ char: '@', suggest: (query) => people.filter((p) => p.toLowerCase().includes(query.toLowerCase())).map((p) => ({ insert: `@${p}`, label: p })) },
],
});
import { PromptInput } from '@absoluteui/components/prompt-input';
const host = document.createElement('div');
document.body.append(host);
// A rough estimate; pass your model's tokenizer instead.
PromptInput.create(host, { label: 'Prompt', maxLength: 4000, showCounter: true, count: (text) => Math.ceil(text.length / 4) });
import { configureAbsoluteUI } from '@absoluteui/core';
configureAbsoluteUI({ components: { promptInput: { submitKey: 'mod-enter' } } });
Terminal window
npm install @absoluteui/components @absoluteui/core @absoluteui/theme

Registry setup, the theme stylesheet, and the Content Security Policy are covered in Installation.

import { PromptInput } from '@absoluteui/components/prompt-input';
import '@absoluteui/components/button/style.css';
import '@absoluteui/components/prompt-input/style.css';
import { PromptInput } from '@absoluteui/components/prompt-input';
import '@absoluteui/components/button/style.css';
import '@absoluteui/components/prompt-input/style.css';
const host = document.querySelector<HTMLElement>('#composer');
if (host) PromptInput.create(host, { label: 'Message', showHint: true, maxLength: 2000, showCounter: true });
More usage
import { PromptInput, type PromptInputSendDetail } from '@absoluteui/components/prompt-input';
const host = document.querySelector<HTMLElement>('#composer');
if (host) {
PromptInput.create(host, { label: 'Message', hideLabel: true, placeholder: 'Ask a question', attachments: true, accept: ['image/*', '.pdf'] });
host.addEventListener('aui-send', (event) => {
const { text, attachments } = (event as CustomEvent<PromptInputSendDetail>).detail;
host.dataset.sent = `${text} (${String(attachments.length)} files)`;
});
}

Using Angular? See Prompt Input for Angular.

PromptInput.create(host: HTMLElement, options: PromptInputOptions): PromptInput

Global configuration key: promptInput (see Configuration).

Option Type Default Description
label string Label and accessible name of the text field. Required.
hideLabel boolean false Visually hide the label; it remains the accessible name.
value string "" Initial text; also the value restored by reset().
name string Form field name.
placeholder string Supplementary hint; never replaces the label.
description string Help text referenced by aria-describedby.
required boolean false Empty text (without attachments) is invalid.
disabled boolean false Disables the field and its buttons.
status 'idle' | 'sending' | 'streaming' "idle" Reply state: sending locks the field and shows a spinner; streaming turns Send into Stop.
rows number 1 Visible rows when empty (integer 1..40).
maxRows number 8 The field grows up to this many rows, then scrolls (integer >= rows).
maxLength number Limit in counter units (characters, or the units of count); validated, not truncated.
showCounter boolean false Show the counter; requires maxLength.
count (value: string) => number Counter hook, for example a tokenizer; returns the size of the text in its own units.
counterUnit 'characters' | 'tokens' Unit in the counter text; default characters, or tokens when count is set.
attachments boolean false Show the attach button and accept pasted or dropped files.
accept readonly string[] "[]" Accepted MIME types (image/*) or extensions (.pdf); empty accepts any.
maxFiles number 10 Most files attached at once (integer 1..100).
maxFileSize number | null "null" Largest file in bytes, or null for no limit.
triggers readonly PromptTrigger[] Suggestions popups for trigger characters: { char, suggest(query) } (slash commands, mentions).
showHint boolean false Show the keyboard hint (how to send and add a line) under the field.
icons Partial<PromptInputIcons> Icon slot overrides (send, stop, attach, remove, file, error).
submitKey 'enter' | 'mod-enter' "enter" Enter sends (Shift+Enter adds a line), or Ctrl/Cmd+Enter sends (Enter adds a line). Globally configurable.
validationTiming 'blur' | 'input' | 'submit' "blur" When validation messages first appear; afterwards they update live. Globally configurable.
locale string "en-US" Message and number-formatting locale. Globally configurable. Inherited from common configuration.
Property Type Description
host HTMLElement Consumer host; its children are owned by the component.
textarea HTMLTextAreaElement The native textarea.
value string Current text.
attachments File[] Files attached now (a copy).
status PromptInputStatus Current reply state.
name string | null Form field name.
label string Label text.
disabled boolean Disabled state.
validity FieldValidity { valid, error, message }; computed on every change.
dirty boolean Text differs from the initial value, or files are attached.
touched boolean Focus has left the control at least once.
suggestionsOpen boolean Whether the suggestions popup is open.
options Readonly<PromptInputOptions> Current instance options.
Method Description
send(): boolean Send like the Send button: emits the cancelable aui-send and clears the field unless prevented; false when nothing was sent.
setValue(value: string): void Programmatic text (no events); clears an external custom error.
setAttachments(files: readonly File[]): void Replace the attached files (no events; limits are not applied).
addFiles(files: readonly File[]): PromptInputRejectedFile[] Add files as if the user picked them: limits apply, aui-attachment-change is emitted; returns the refused files.
openFilePicker(): void Open the file chooser (attachments must be enabled).
clear(): void Clear the text and the attachments (no events).
update(options: Partial<PromptInputOptions>): void Merge and apply options.
reportValidity(): boolean Show messages now and return validity.
setCustomError(message: string | null): void External error; cleared when the user edits.
getFormValue(): string Value for form serialization (the text).
focus(): void Focus the text field.
reset(): void Restore the initial text, remove attachments, and clear dirty/touched/submitted state.
destroy(): void Remove rendering, listeners, registration, and subscriptions.
Event Detail Bubbles Cancelable Description
aui-input PromptInputValueDetail Yes No User edited the text: { value, validity }.
aui-change PromptInputValueDetail Yes No User committed the text (native change, on blur).
aui-send PromptInputSendDetail Yes Yes User sent: { text, attachments }; prevent it to keep the text and files in the field.
aui-stop {} Yes No User pressed Stop while status is streaming.
aui-attachment-change PromptInputAttachmentChangeDetail Yes No Files were attached or removed by the user: { attachments, rejected }.
aui-suggestion-select PromptInputSuggestionSelectDetail Yes No A suggestion was inserted: { trigger, suggestion }.

All rules live in the aui.components cascade layer, so application styles override them without specificity battles.

Class Purpose
aui-field aui-prompt-input Host.
aui-prompt-input--invalid | --disabled | --sending | --streaming | --dragover | --auto-native State modifiers on the host.
aui-prompt-input__box The bordered box around chips, field, and toolbar (shows focus).
aui-prompt-input__textarea Native textarea.
aui-prompt-input__attachments | __chip | __chip-name | __chip-size | __chip-remove Attachment chips.
aui-prompt-input__toolbar | __attach | __send | __spacer Toolbar with the attach button, counter, and Send/Stop.
aui-prompt-input__suggestions | __suggestion | __suggestion--active | __suggestion-label | __suggestion-description Suggestions listbox.
aui-prompt-input__hint Keyboard hint (showHint).
aui-field__label | __required | __description | __counter | __error Shared field chrome.
Slot Default icon
send send (icon set)
stop stop (icon set)
attach paperclip (icon set)
remove close
file file
error alert-circle

Tokens this stylesheet reads (verified in CI). Override them in a theme or with the Theme Designer.

--aui-border-width | --aui-color-border | --aui-color-border-strong | --aui-color-disabled-bg | --aui-color-error-fg | --aui-color-focus-ring | --aui-color-primary | --aui-color-selected | --aui-color-selected-text | --aui-color-surface | --aui-color-surface-sunken | --aui-color-text | --aui-color-text-disabled | --aui-color-text-muted | --aui-control-padding-x | --aui-duration-fast | --aui-easing-standard | --aui-font-family-sans | --aui-font-size-md | --aui-font-size-sm | --aui-font-weight-medium | --aui-icon-size-sm | --aui-line-height-normal | --aui-line-height-tight | --aui-radius-md | --aui-radius-pill | --aui-radius-sm | --aui-shadow-md | --aui-space-1 | --aui-space-2

TypeScript definitions
type PromptSubmitKey = 'enter' | 'mod-enter';
type PromptInputStatus = 'idle' | 'sending' | 'streaming';
interface PromptSuggestion { insert: string; label: string; description?: string }
interface PromptTrigger { char: string; suggest: (query: string) => readonly PromptSuggestion[] | Promise<readonly PromptSuggestion[]> }
interface PromptInputOptions extends Partial<PromptInputConfig> {
label: string; hideLabel?: boolean; value?: string; name?: string; placeholder?: string; description?: string;
required?: boolean; disabled?: boolean; status?: PromptInputStatus; rows?: number; maxRows?: number;
maxLength?: number; showCounter?: boolean; count?: (value: string) => number; counterUnit?: 'characters' | 'tokens';
attachments?: boolean; accept?: readonly string[]; maxFiles?: number; maxFileSize?: number | null;
triggers?: readonly PromptTrigger[]; showHint?: boolean; locale?: string; icons?: Partial<PromptInputIcons>;
}
interface PromptInputSendDetail { text: string; attachments: File[] }
interface PromptInputAttachmentChangeDetail { attachments: File[]; rejected: PromptInputRejectedFile[] }

Pattern: Native <textarea> with a <label for> association (HTML); suggestions follow the APG listbox with aria-activedescendant on the text field.

Checked on every docs build: the showcase passes axe (WCAG 2.2 A and AA rules) in the default, dark, and high-contrast themes and right to left; the playground loads without errors and passes axe before and after every on/off option is switched, with no Content Security Policy violations.

Key Context Action
Enter Field, submitKey ‘enter’ Sends the message (Shift+Enter inserts a line break).
Ctrl+Enter / Cmd+Enter Field, submitKey ‘mod-enter’ Sends the message (Enter inserts a line break).
ArrowDown / ArrowUp Suggestions open Moves the active suggestion (wraps).
Enter / Tab Suggestions open Inserts the active suggestion.
Escape Suggestions open Closes the suggestions.
Tab / Shift+Tab Any Moves through attachment remove buttons, the field, attach, and send.
Enter / Space Buttons Activate.
Element Role
textarea textbox (native, multi-line; aria-multiline=true)
attach, send/stop, remove attachment button (native)
suggestions listbox with option children
attachments list (labelled ‘Attachments’)
Attribute Element Value
aria-describedby textarea Help text, counter, visible error, and keyboard hint ids
aria-invalid textarea “true” only while an error message is shown
aria-activedescendant textarea The active suggestion while the popup is open
aria-controls textarea The suggestions listbox while it is open
aria-label send button ‘Send message’, or ‘Stop generating’ while streaming
aria-disabled send button “true” while there is nothing to send (it stays focusable)

Focus stays in the field after sending, after picking a suggestion, and after choosing files; removing an attachment moves focus to the next chip or the field. The box shows the focus ring.

Criterion Level Note
1.3.1 Info and Relationships A
1.4.3 Contrast (Minimum) AA
1.4.11 Non-text Contrast AA
2.1.1 Keyboard A
2.4.7 Focus Visible AA
2.5.8 Target Size (Minimum) AA
3.2.2 On Input A
3.3.1 Error Identification A
3.3.2 Labels or Instructions A
4.1.2 Name, Role, Value A
4.1.3 Status Messages AA

Automated test results: Accessibility and compliance.

  • The keyboard behavior of Enter can be shown under the field (showHint) and is then part of the description.
  • Attached, removed, and refused files are announced politely; refusals also show as the field error.
  • The number of suggestions is announced when the popup opens.
  • Enter during IME composition never sends.
  • Manual screen-reader verification (NVDA, JAWS, VoiceOver) is pending.
Import cost Minified gzip brotli CSS brotli
@absoluteui/components/prompt-input 61.3 kB 20.0 kB 17.9 kB 1.2 kB

Measured at build time, including every AbsoluteUI module the component pulls in. No third-party runtime dependencies.

Budget (enforced in CI) Limit
PromptInput.create < 2 ms average in headless Chromium
Keystroke with a 10,000-character value < 4 ms average in headless Chromium

Tested scale: Values up to 100,000 characters; up to 100 attachments; up to 50 suggestions shown.

Each keystroke re-validates and re-measures once; native field-sizing: content is used where supported. Suggestion requests are raced, so a slow answer for an old query is dropped.

Measured run times: Performance.

States

Idle, empty (Send has aria-disabled), filled, sending (locked, spinner), streaming (Stop), disabled, invalid, over the limit, with attachments, drag over, suggestions open.

State transitions
From Trigger To
idle, filled Enter / Send aui-send; cleared unless prevented
any update({ status: 'streaming' }) Send becomes Stop; the field stays editable
streaming Stop aui-stop (the host sets status back)
typing after / or @ a trigger with suggestions suggestions open
suggestions open Enter, Tab, click text inserted, aui-suggestion-select
Accessibility notes
  • Attaching, removing, and refusing files is announced; refusals also show as the field error.
  • The number of suggestions is announced when the popup opens.
  • The counter is announced only near or over the limit, 750 ms after typing stops.
  • Enter during an IME composition never sends.
  • The e2e axe run covers three themes; manual screen-reader verification is pending.
Responsive behavior

Full width; the field grows between rows and maxRows, then scrolls; chips wrap.

Right-to-left

Logical properties throughout; the send icon mirrors; the toolbar order follows the writing direction.

Theming

The box draws the boundary and the focus ring (ring plus border color); invalid uses color-error-fg; the active suggestion uses the selected roles with an outline. Forced colors use Highlight.

Global configuration
configureAbsoluteUI({ components: { promptInput: { submitKey: 'mod-enter', validationTiming: 'input' } } });
Component configuration

Instance submitKey, validationTiming, and locale override configuration; configuration changes re-render existing instances.

Icons

icons.send (icon set send), icons.stop (stop), icons.attach (paperclip), icons.remove (close), icons.file (file), icons.error (alert-circle).

Security

All text (label, help, file names, suggestions, messages) is set with textContent. Files are never read or uploaded by the component. Auto-grow writes block-size through the CSSOM; CSP-safe.

Data handling

No persistence, network access, or telemetry; files stay in memory until sent or removed.

Supported data scale

Values up to 100,000 characters, up to 100 attachments, up to 50 suggestions shown.

Edge cases
  • Whitespace-only text without files cannot be sent.
  • A file already attached (same name, size, and date) is ignored.
  • Files over the count limit are refused one by one, with one message.
  • A trigger character only opens suggestions at the start of the text or after a space, so URLs and email addresses do not open it.
Errors
Code Category Cause
PROMPT_INPUT_OPTIONS configuration Blank label, an invalid status, rows or maxRows out of range, showCounter without maxLength, an invalid count, accept, maxFiles, maxFileSize, or triggers.
CFG_INVALID_VALUE / CFG_UNKNOWN_OPTION configuration Invalid or unknown configuration.

Invalid options throw before the host is modified; an invalid update() leaves the previous state intact. A suggest function that throws or rejects closes the popup.

Known limitations
  • No tokenizer is bundled; the counter hook takes yours.
  • Suggestions open inside the component (not in the top layer); an ancestor with overflow: hidden can clip them.
  • Manual screen-reader verification is pending.
Unsupported scenarios
  • Rich text or HTML in the field.
  • Uploading files (the host uploads what aui-send delivers).
  • Voice input.