v0.1 public beta early access on GitHub
Home / Components / prompt-input

Prompt InputiOS

AI-style prompt composer with auto-resizing textarea and a submit button that swaps between send and stop states. Haptic feedback on submit, reduced-motion aware.

$ npx lumioui add prompt-input
import { PromptInput } from "@/components/ui/prompt-input/prompt-input";
Prompt Inputprompt-input.tsx
prompt-input/prompt-input.tsx open

Live preview — the real component, driven by the props below.

Props14
value? string
defaultValue? string
onValueChange? (value: string) => void
onSubmit? (value: string) => void | Promise<void>
loading? boolean
onStop? () => void
actions? PromptAction[] Trailing action chips rendered left of the send button.
onAction? (action: PromptAction) => void Fired after an action's own `onPress` — handy for analytics/navigation.
placeholder? string Placeholder text.
minRows? number Min textarea rows. Default 1.
maxRows? number Max textarea rows before scrolling. Default 6.
accessibilityLabel? string Accessible label. Default "Prompt".
disabled? boolean
className? string
Prompt Inputprompt-input.tsx
prompt-input/prompt-input.tsx open

AI-style prompt composer with auto-resizing textarea and a submit button that swaps between send and stop states. Haptic feedback on submit, reduced-motion aware.