Component
NavigationBar
A FormaUI bottom navigation bar — top-level destination switching, delegating to Material 3's NavigationBar.
3 variantsThemed defaults48dp target
import dev.formaui.components.navigation.FormaNavigationBar
import dev.formaui.components.navigation.FormaNavigationBarItem
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
KOTLIN
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.