WidthConfig
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
Matches the container width. If maxWidth is provided, it caps the resulting menu width, including when the container is wider.