DrawerItem

fun DrawerItem(item: NavigationDrawerItem, selected: Boolean, onItemClick: (NavigationDrawerItem) -> Unit)

Renders a single navigation drawer row with an icon and title, highlighted when selected.

Parameters

item

The NavigationDrawerItem describing the route, icon, and title to render.

selected

Whether this item corresponds to the currently active destination.

onItemClick

Callback invoked with the clicked NavigationDrawerItem when the row is tapped.