Prompt

A shell line. Sigil, field and caret share one row with no border between them.

Installation

npx shadcn@latest add @afterglow/prompt

API Reference

Prompt

onSubmit is handed the typed string rather than the form event, and the field clears itself. label is the accessible name, so it is read out and never drawn.

PropTypeDefault
sigilstring">"
labelstring"Command"
placeholderstring-
onSubmit(value: string) => void-