Improved prompt function add add ctx.* functions (#301)

This commit is contained in:
Gregory Schier
2025-11-15 08:19:58 -08:00
committed by GitHub
parent 7ced183b11
commit 84219571e8
29 changed files with 454 additions and 150 deletions

View File

@@ -16,6 +16,7 @@ export function Prompt({
label,
defaultValue,
placeholder,
password,
onResult,
required,
confirmText,
@@ -36,10 +37,10 @@ export function Prompt({
onSubmit={handleSubmit}
>
<PlainInput
hideLabel
autoSelect
required={required}
placeholder={placeholder ?? 'Enter text'}
type={password ? 'password' : 'text'}
label={label}
defaultValue={defaultValue}
onChange={setValue}