When to use it
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
Native example
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun ReasoningExample(thinking: Boolean) {
LumenReasoning(
label = if (thinking) "Thinking…" else "Thought for 12 seconds",
status = if (thinking) LumenStreamStatus.Streaming else LumenStreamStatus.Complete
) {
Text("The person wants a short summary, so I'll lead with the new components.")
}
}Reference
The primary shared and platform-specific options exposed by LumenReasoning.
| API | Values or type | Default | Description |
|---|---|---|---|
| label / status / collapseOnComplete | header text / stream status / close after streaming | required / complete / true | Set status to streaming while reasoning arrives and complete once the answer starts. |
Native behavior
Set status to streaming while reasoning arrives and complete once the answer starts. A person's toggle always wins.
Header button with expanded state; reasoning text is never a live region.
Shared component