KwikDropDownButton

fun KwikDropDownButton(modifier: Modifier = Modifier, label: String = "", text: String, leadingIcon: Any? = null, onClick: () -> Unit)

A component that displays a dropdown view with a label and a text.

Parameters

modifier

: Modifier applies to the dropdown view

label

: shows the label of the dropdown

text

: displays the text of the dropdown

leadingIcon

: the icon to display at the start of the dropdown

onClick

: the action to perform when the dropdown is clicked

Example usage:

KwikDropDownButton(
label = "Language",
leadingIcon = R.drawable.shield,
text = "Kinyarwanda",
onClick = {}
)