@@ -5,42 +5,63 @@ order: 100
55
66## Overview
77
8- A bottom navigation bar with up to 5 items for primary navigation.
8+ <div class =" images-two-up not-prose " >
9+
10+ ![ ] ( /img/docs/edge-bottom-nav-ios.png )
11+
12+ ![ ] ( /img/docs/edge-bottom-nav-android.png )
13+
14+ </div >
15+
16+ A bottom navigation bar with up to 5 items. Used for your app's primary navigation.
917
1018@verbatim
1119``` blade
12- <x- native:bottom-nav label-visibility="labeled">
13- <x- native:bottom-nav-item
20+ <native:bottom-nav label-visibility="labeled">
21+ <native:bottom-nav-item
1422 id="home"
1523 icon="home"
1624 label="Home"
1725 url="/home"
1826 :active="true"
1927 />
20- <x- native:bottom-nav-item
28+ <native:bottom-nav-item
2129 id="profile"
2230 icon="person"
2331 label="Profile"
2432 url="/profile"
2533 badge="3"
26- badge-color="#FF0000"
2734 />
28- </x- native:bottom-nav>
35+ </native:bottom-nav>
2936```
3037@endverbatim
3138
32- ## BottomNav Props
39+ ## Props
3340
34- - ` label-visibility ` - ` " labeled" ` (default) , ` " selected" ` , or ` " unlabeled" `
41+ - ` label-visibility ` - ` labeled ` , ` selected ` , or ` unlabeled ` (optional, default: ` labeled ` )
3542- ` dark ` - Force dark mode styling (optional)
3643
37- ## BottomNavItem Props
44+ ## Children
45+
46+ A ` <native:bottom-nav> ` can contain up to 5 ` <native:bottom-nav-item> ` elements.
3847
39- - ` id ` - Unique identifier (required)
40- - ` icon ` - Material icon name (required )
41- - ` label ` - Display text (required )
42- - ` url ` - Navigation URL (required )
43- - ` active ` - Highlight as active (default: ` false ` )
48+ - ` id ` - Unique identifier
49+ - ` icon ` - A named [ icon ] ( icons )
50+ - ` label ` - Accessibility label (optional )
51+ - ` url ` - A URL to navigate to in the web view (optional )
52+ - ` active ` - Highlight this item as active (optional, default: ` false ` )
4453- ` badge ` - Badge text/number (optional)
45- - ` badge-color ` - Badge background color hex (optional)
46- - ` news ` - Show "new" indicator dot (default: ` false ` )
54+ - ` news ` - Show "new" indicator dot (optional, default: ` false ` )
55+
56+ <aside >
57+
58+ Any ` url ` that doesn't match the web view's domain will open in the user's default browser.
59+
60+ </aside >
61+
62+ ### ` badge ` example
63+ <div class =" sm:w-1/2 " >
64+
65+ ![ ] ( /img/docs/edge-bottom-nav-item-badge.png )
66+
67+ </div >
0 commit comments