YoussefMoataz / Exposed-Dropdown-Input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exposed Dropdown Input

Android (Compose) library that provides the exposed dropdown menu like this:

  • Screenshot 2023-08-19 132333
  • Screenshot 2023-08-19 132359

Setup

build.grade (project):

repositories {
    // other repos
    maven("https://jitpack.io")
}

build.grade (app):

dependencies {
    // other dependencies
    implementation("com.github.YoussefMoataz:Exposed-Dropdown-Input:1.0.0")
}

Usage

val inputValue = rememberExposedDropdownValue()

ExposedDropdownMenu(
    label = "Language",
    text = inputValue.value,
    onValueChange = { newValue ->
        inputValue.value = newValue
    },
    items = arrayListOf("Kotlin", "Java"),
    isError = false,
    supportingText = {
        Text(text = "Instructions")
    }
)

About

License:MIT License


Languages

Language:Kotlin 100.0%