Kwik Drop Down Button
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
leading Icon
: the icon to display at the start of the dropdown
on Click
: the action to perform when the dropdown is clicked
Example usage:
KwikDropDownButton(
label = "Language",
leadingIcon = R.drawable.shield,
text = "Kinyarwanda",
onClick = {}
)
Content copied to clipboard