Skip to content

Commit f50c0c0

Browse files
committed
Add a modifier for cells
The cell's modifier name is "cellModifier"
1 parent 1382391 commit f50c0c0

File tree

1 file changed

+2
-1
lines changed
  • speld/src/main/java/com/yogeshpaliyal/speld

1 file changed

+2
-1
lines changed

speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ fun OtpCell(
6161
@Composable
6262
fun PinInput(
6363
modifier: Modifier = Modifier,
64+
cellModifier: Modifier = Modifier,
6465
length: Int = 5,
6566
value: String = "",
6667
disableKeypad: Boolean = false,
@@ -97,7 +98,7 @@ fun PinInput(
9798
) {
9899
repeat(length) {
99100
OtpCell(
100-
modifier = Modifier
101+
modifier = cellModifier
101102
.size(width = 45.dp, height = 45.dp)
102103
.clip(MaterialTheme.shapes.large)
103104
.background(

0 commit comments

Comments
 (0)