Skip to content

1.4.0

Compare
Choose a tag to compare
@alexstyl alexstyl released this 13 May 19:18
· 190 commits to main since this release

New features

Add a new alignment parameter on the MenuContent composable, that controls how the MenuContent is anchored to the MenuButton when expanded. (fixed #3)

Example:

Menu {
    MenuButton {
        BasicText("Toggle the menu")
    }

    MenuContent(alignment = Alignment.End) {
        MenuItem(onClick = { /* TODO */ }) {
            BasicText("Option")
        }
    }
}