Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogeshpaliyal/speld
PIN View or OTP View for Jetpack compose
https://github.com/yogeshpaliyal/speld
android compose-android hacktoberfest jetpack-compose kotlin otp-view pin-view
Last synced: 3 months ago
JSON representation
PIN View or OTP View for Jetpack compose
- Host: GitHub
- URL: https://github.com/yogeshpaliyal/speld
- Owner: yogeshpaliyal
- License: apache-2.0
- Created: 2022-01-30T12:44:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T04:34:11.000Z (10 months ago)
- Last Synced: 2024-05-01T12:54:59.341Z (9 months ago)
- Topics: android, compose-android, hacktoberfest, jetpack-compose, kotlin, otp-view, pin-view
- Language: Kotlin
- Homepage:
- Size: 292 KB
- Stars: 37
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](cover.jpeg)
# SPELD
![buildStatus](https://img.shields.io/github/actions/workflow/status/yogeshpaliyal/Speld/publish.yml?style=plastic&branch=master)
![latestVersion](https://img.shields.io/github/v/tag/yogeshpaliyal/Speld?display_name=tag)
> Android Compose OTP/PIN View
## Implementation
```groovy
implementation 'com.yogeshpaliyal:speld:1.0.1'
```### Default / Solid Pin View
```kotlin
val text = remember { mutableStateOf("") }
PinInput(value = text.value, obscureText = null) {
text.value = it
}
```### Bordered Pin View
```kotlin
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
}
```## ✍️ Author
👤 **Yogesh Choudhary Paliyal**
* Twitter: @yogeshpaliyal
* Email: [email protected]Feel free to ping me 😉
## 🤝 Contributing
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**.1. Open an issue first to discuss what you would like to change.
1. Fork the Project
1. Create your feature branch (`git checkout -b feature/amazing-feature`)
1. Commit your changes (`git commit -m 'Add some amazing feature'`)
1. Push to the branch (`git push origin feature/amazing-feature`)
1. Open a pull requestPlease make sure to update tests as appropriate.
## ❤ Show your support
Give a ⭐️ if this project helped you!
## ☑️ TODO
- [x] Solid PIN View
- [x] Bordered PIN View## 📝 License
```
Copyright © 2023 - Yogesh Choudhary PaliyalLicensed 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 athttp://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](https://github.com/theapache64/readgen)_ ❤