Skip to content

Instantly share code, notes, and snippets.

@saqib-github-commits
Created August 20, 2023 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saqib-github-commits/2ac1f0068ed1cb2d4f0444724029be9e to your computer and use it in GitHub Desktop.
Save saqib-github-commits/2ac1f0068ed1cb2d4f0444724029be9e to your computer and use it in GitHub Desktop.
@Composable
fun NavigationDrawerItem(
label: @Composable () -> Unit,
selected: Boolean,
onClick: () -> Unit,
modifier: Modifier = Modifier,
icon: (@Composable () -> Unit)? = null,
badge: (@Composable () -> Unit)? = null,
shape: Shape = NavigationDrawerTokens.ActiveIndicatorShape.toShape(),
colors: NavigationDrawerItemColors = NavigationDrawerItemDefaults.colors(),
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }
) {
// implementation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment