KInput
Shadcn/ui-style Input — mirrors input.tsx.
A standardized text input component that follows the Kindling design system. It provides built-in support for placeholders, error states, disabled states, and password masking.
Respects androidx.compose.ui.platform.LocalLayoutDirection via Compose RTL support.
Example usage:
var email by remember { mutableStateOf("") }
KInput(
value = email,
onValueChange = { email = it },
placeholder = "name@example.com",
leadingIcon = { Icon(Icons.Default.Email, null) }
)Parameters
The current text value to display.
Callback invoked when the text value changes.
The modifier to be applied to the input layout.
The placeholder text to display when the input is empty.
Whether the input is enabled for interaction.
Whether the input should mask the text (e.g., for passwords).
Whether the input should display an error state.
Whether the input should be restricted to a single line.
The maximum number of lines allowed.
The minimum number of lines allowed.
Optional leading composable slot.
Optional trailing composable slot.
Software keyboard options.
Software keyboard actions.
The MutableInteractionSource to represent the stream of interactions.