Skip to content

Commit

Permalink
Make the first text field in the Material 3 demo readonly to show tha…
Browse files Browse the repository at this point in the history
…t the pointer shows as an I-beam
  • Loading branch information
ShreckYe committed Jan 3, 2025
1 parent 3474a2a commit b1eb212
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ fun Material3(/*modifier: Modifier = Modifier*/) {
TextFieldWithMaterialIcons(
text,
{ text = it },
readOnly = true,
label = label,
placeholder = placeholder,
leadingIcon = Icons.Default.Add,
Expand Down

0 comments on commit b1eb212

Please sign in to comment.