JengaNavigationBar

fun JengaNavigationBar(modifier: Modifier = Modifier, colors: JengaNavigationBarColors = JengaNavigationBarDefaults.colors(), content: @Composable RowScope.() -> Unit)(source)

A bottom navigation bar. Place JengaNavigationBarItems in content; each is weighted equally. Applies the navigation-bar inset itself.

Parameters

modifier

the Modifier for the bar.

colors

the color set; defaults to JengaNavigationBarDefaults.colors.

content

the bar items, laid out in a RowScope.

Samples

JengaNavigationBar(
    content = {
        JengaNavigationBarItem(
            selected = true,
            onClick = { },
            icon = {
                JengaIcon(
                    imageVector = JengaIcons.Search,
                    contentDescription = null,
                )
            },
            label = "Events",
        )
        JengaNavigationBarItem(
            selected = false,
            onClick = { },
            icon = {
                JengaIcon(
                    imageVector = JengaIcons.Check,
                    contentDescription = null,
                )
            },
            label = "Scan",
        )
    },
)