Skip to content

Commit d87664d

Browse files
committed
example: Add TextField SingleLine demo
1 parent b78e0ca commit d87664d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composeApp/src/commonMain/kotlin/component/OtherComponent.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ fun OtherComponent(padding: PaddingValues) {
124124
value = text3,
125125
onValueChange = { text3 = it },
126126
backgroundColor = MiuixTheme.colorScheme.secondaryContainer,
127-
label = "Use Label As Placeholder",
127+
label = "Placeholder & SingleLine",
128128
useLabelAsPlaceholder = true,
129+
singleLine = true,
129130
modifier = Modifier
130131
.padding(horizontal = 12.dp)
131132
.padding(bottom = 12.dp),

0 commit comments

Comments
 (0)