Prompt
A shell line. Sigil, field and caret share one row with no border between them.
pulls in@afterglow/caret
Installation
npx shadcn@latest add @afterglow/promptAPI 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.
| Prop | Type | Default |
|---|---|---|
| sigil | string | ">" |
| label | string | "Command" |
| placeholder | string | - |
| onSubmit | (value: string) => void | - |