State of Compose 2023 results are in! Click here to learn more

← Back to Material Compose

TrailingIcon

Component
in
Material
. Since 1.1.0

Overview

Code Examples

Contains default values used by Exposed Dropdown Menu.

Overloads

TrailingIcon

@ExperimentalMaterialApi
object ExposedDropdownMenuDefaults {
    /**
     * Default trailing icon for Exposed Dropdown Menu.
     *
     * @param expanded Whether [ExposedDropdownMenuBoxScope.ExposedDropdownMenu]
     * is expanded or not. Affects the appearance of the icon.
     * @param onIconClick Called when the icon was clicked.
     */
    @ExperimentalMaterialApi
    @Composable
    fun TrailingIcon(
        expanded: Boolean,
        onIconClick: () -> Unit = {}
    )