Skip to content

cascade

demo

cascade builds nested popup menus with smooth height animations. It is designed to be a drop-in replacement for both PopupMenu and DropdownMenu, so using it in your project is beautifully only a word away. Try out the sample app to see it in action.

implementation "me.saket.cascade:cascade:2.3.0"
implementation "me.saket.cascade:cascade-compose:2.3.0"
- DropdownMenu(
+ CascadeDropdownMenu(
  expanded = expanded,
  onDismissRequest = { expanded = false }
) { 
  DropdownMenuItem(…)
  DropdownMenuItem(…)
}
- val popup = PopupMenu(context, anchor)
+ val popup = CascadePopupMenu(context, anchor)
  popup.inflate(R.menu.nicolas_cage_movies)
  popup.show()

See additional documentation for,