When to use it
Use it for units, domains, and inline actions. Keep addon text short.
Join a text field with prefix or suffix text, an icon, or a button in one frame.
Native example
Use it for units, domains, and inline actions. Keep addon text short.
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import com.santi020k.lumen.*
@Composable
fun WebsiteField() {
var site by remember { mutableStateOf("lumen") }
LumenFieldGroup("Website") {
LumenInputGroup(
value = site,
onValueChange = { site = it },
label = "Website",
modifier = Modifier.fillMaxWidth(),
leadingText = "https://",
trailingText = ".com"
)
}
}Reference
The primary shared and platform-specific options exposed by LumenInputGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| leading / trailing / invalid | leading addon / trailing addon / error frame | none / none / false | Use it for units, domains, and inline actions. |
Native behavior
Use it for units, domains, and inline actions. Keep addon text short.
The field keeps its own name; addon buttons keep their own names.
Shared component