https://github.com/mainrs/android-compose-forms
some desc
https://github.com/mainrs/android-compose-forms
Last synced: 10 months ago
JSON representation
some desc
- Host: GitHub
- URL: https://github.com/mainrs/android-compose-forms
- Owner: mainrs
- License: mit
- Created: 2022-06-30T16:09:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T20:49:44.000Z (over 3 years ago)
- Last Synced: 2025-01-22T09:14:01.473Z (11 months ago)
- Language: Kotlin
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Android Compose Forms
> A compose library for validating forms based on Kotlin Flows.
# Installation
First, make sure that https://jitpack.io has been declared as a Maven repository. Then just declare
the dependency either in Gradle
```groovy
dependencies {
// Core library (usable without Compose).
implementation 'com.github.mainrs:android-compose-forms:1.0.0'
// Contains basic form validators.
implementation 'com.github.mainrs:android-compose-forms-builtins:1.0.0'
// Contains a FormField UI element based for Android Compose.
implementation 'com.github.mainrs:android-compose-forms-builtins-ui:1.0.0'
}
```
or the new Kotlin DSL
```kotlin
dependencies {
// Core library (usable without Compose).
implementation("com.github.mainrs:android-compose-forms:1.0.0")
// Contains basic form validators.
implementation("com.github.mainrs:android-compose-forms-builtins:1.0.0")
// Contains a FormField UI element based for Android Compose.
implementation("com.github.mainrs:android-compose-forms-builtins-ui:1.0.0")
}
```
# Usage
See the example app for how to use the library.
# License
This project is licensed under the [MIT license](./license).