Android Compose OTP/PIN View
implementation 'com.yogeshpaliyal:speld:1.0.1'
val text = remember { mutableStateOf("") }
PinInput(value = text.value, obscureText = null) {
text.value = it
}
val text = remember { mutableStateOf("") }
PinInput(
cellModifier = Modifier.border(
BorderStroke(2.dp, Color.Red),
shape = RoundedCornerShape(3.dp)
), value = text.value,
obscureText = "*",
length = 6,
disableKeypad = false // Optional
) {
text.value = it
}
👤 Yogesh Choudhary Paliyal
Feel free to ping me 😉
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)Please make sure to update tests as appropriate.
Give a ⭐️ if this project helped you!
Copyright © 2023 - Yogesh Choudhary Paliyal
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This README was generated by readgen ❤