When to use it
The host owns the text and clears it after submit. Send is disabled until the trimmed prompt fits maxLength; Stop appears only while pending.
Native example
The host owns the text and clears it after submit. Send is disabled until the trimmed prompt fits maxLength; Stop appears only while pending.

Captured exampleExpo web renderer
Open interactive previewimport { useState } from 'react'
import { LumenPromptComposer } from '@santi020k/lumen-react-native'
export function ChatInput({ onSend }: { onSend: (prompt: string) => Promise<void> }) {
const [value, setValue] = useState('')
const [pending, setPending] = useState(false)
return (
<LumenPromptComposer
onStop={() => setPending(false)}
onSubmit={text => {
setValue('')
setPending(true)
onSend(text).finally(() => setPending(false))
}}
onValueChange={setValue}
pending={pending}
placeholder="Ask anything"
submitOnEnter
value={value}
/>
)
}Reference
The primary shared and platform-specific options exposed by LumenPromptComposer.
| API | Values or type | Default | Description |
|---|---|---|---|
| value / maxLength / pending | controlled text / character limit / show stop | required / 4000 / false | The host owns the text and clears it after submit. |
Native behavior
The host owns the text and clears it after submit. Send is disabled until the trimmed prompt fits maxLength; Stop appears only while pending.
Visible label, named send and stop buttons, busy while pending.
Shared component