Skip to content

Inputs

Input components are state-hoisted wrappers around Material 3 controls.

Components

  • TextField
  • PasswordField
  • SearchField
  • Checkbox
  • RadioGroup
  • Switch
  • Slider

Example

AppTheme {
    TextField(
        value = state.name,
        onValueChange = onNameChanged,
        label = "Name",
    )
}

Callers own input state and validation. Use supportingText and isError for field-level feedback.