WidthConfig

sealed interface WidthConfig

Inheritors

Types

Link copied to clipboard
data class Auto(val maxWidth: Dp? = MyDropdownMenuDefaults.maxWidth, val limitToContainerWidth: Boolean = false) : MyDropdownMenu.WidthConfig

Wraps content up to maxWidth. If limitToContainerWidth is true, the menu is also capped at the measured container width.

Link copied to clipboard
data class MatchParent(val maxWidth: Dp? = null) : MyDropdownMenu.WidthConfig

Matches the container width. If maxWidth is provided, it caps the resulting menu width, including when the container is wider.