Component
NavigationBar
A FormaUI bottom navigation bar — top-level destination switching, delegating to Material 3's NavigationBar.
dev.formaui.components.navigation
No badgeNumeric badgeDot badge
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
Live preview
Live preview — ~37 MB development build
Usage
var selected by remember { mutableIntStateOf(0) }
FormaNavigationBar {
FormaNavigationBarItem(
selected = selected == 0, onClick = { selected = 0 },
icon = { Icon(Icons.Default.Home, contentDescription = "Home") },
label = "Home",
)
FormaNavigationBarItem(
selected = selected == 1, onClick = { selected = 1 },
icon = { Icon(Icons.Default.Notifications, contentDescription = "Alerts") },
label = "Alerts", badgeCount = 3,
)
}Accessibility
48dp touch target and selection semantics come from Material 3's NavigationBarItem; supply a contentDescription on each item's icon for accessibility.