eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsNavigation
BottomNavigation
View source
1 min read
Three to five top-level destinations, always reachable, pinned above the home indicator.
1
using eQuantic.UI.Components;
DEFAULT
4 destinations
Usage
1
2
3
4
5
new BottomNavigation(_tab, i => SetState(() => _tab = i))
{
Items = [ new BottomNavigationItem(Icons.Home, "Home"),
new BottomNavigationItem(Icons.List, "Activity") { BadgeCount = 3 } ],
}
API
Prop
Type
Default
Description
Selected
int
0
Active destination.
OnSelect
Action<int>?
null
Handler; re-selecting the active item should pop its stack to root.
Item.BadgeCount
int
0
Per-item count badge; zero renders nothing.
States
State
Rendering
Selected
Filled glyph and Primary label
Unselected
Outline glyph, TextSecondary
With badge
Count anchored to the glyph
Accessibility
Each item is a tab announcing "Activity, 3 new, 2 of 4, selected". The bar is one focus group.
When to use
Flat top-level destinations on phones.
Avoid
More than five items.
Actions instead of destinations.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/BottomNavigation.cs.