Kwik Dropdown Item
constructor(id: UUID = UUID.randomUUID(), text: @Composable () -> Unit, onClick: () -> Unit, enabled: Boolean = true, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, divider: Boolean = false)
Parameters
id
: The unique identifier for the item.
text
: The text to be displayed for the item.
on Click
: The callback that will be called when the item is clicked.
enabled
: A boolean indicating whether the item is enabled or not. Default is true.
leading Icon
: A composable function that represents the leading icon for the item. Default is null.
trailing Icon
: A composable function that represents the trailing icon for the item. Default is null.
divider
: A boolean indicating whether to show a divider after the item. Default is false.