Input

fun Input(modifier: Modifier = Modifier, state: InputState = rememberInputState(), hint: String? = null, readOnly: Boolean = false, enabled: Boolean = true, style: TextStyle = LocalStyle.current, alignment: Alignment.Vertical = Alignment.CenterVertically, onImeClick: () -> Boolean? = null, colorProvider: InputStatusColorProvider = InputStatusColorProvider.Default, leading: InputDecoration? = null, trailing: InputDecoration? = null)

Parameters

state

状态

hint

提示

readOnly

禁止编辑文本

enabled

是否启用输入框

style

文字样式

alignment

文字对齐方式

colorProvider

提示灯颜色

leading

头部装饰

trailing

尾部装饰