Skip to content

Commit

Permalink
Add a modifier for cells
Browse files Browse the repository at this point in the history
The cell's modifier name is "cellModifier"
  • Loading branch information
XAli-SHX committed Apr 22, 2023
1 parent 1382391 commit f50c0c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ fun OtpCell(
@Composable
fun PinInput(
modifier: Modifier = Modifier,
cellModifier: Modifier = Modifier,
length: Int = 5,
value: String = "",
disableKeypad: Boolean = false,
Expand Down Expand Up @@ -97,7 +98,7 @@ fun PinInput(
) {
repeat(length) {
OtpCell(
modifier = Modifier
modifier = cellModifier
.size(width = 45.dp, height = 45.dp)
.clip(MaterialTheme.shapes.large)
.background(
Expand Down

0 comments on commit f50c0c0

Please sign in to comment.