Skip to content

Commit 34ee895

Browse files
committed
EDGE
1 parent b7bf82e commit 34ee895

File tree

12 files changed

+140
-78
lines changed

12 files changed

+140
-78
lines changed
23.5 KB
Loading
47.8 KB
Loading
28.3 KB
Loading
125 KB
Loading
216 KB
Loading
16.9 KB
Loading
46.4 KB
Loading

resources/css/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,11 @@ nav.docs-navigation > ul > li > ul {
301301
.prose aside {
302302
@apply relative z-0 mt-5 overflow-hidden rounded-2xl bg-gradient-to-tl from-transparent to-violet-100/75 px-5 ring-1 ring-black/5 dark:from-slate-900/30 dark:to-indigo-900/35;
303303
}
304+
305+
.images-two-up {
306+
@apply grid gap-8 mt-0 items-center;
307+
308+
@variant sm {
309+
@apply grid-cols-2;
310+
}
311+
}

resources/views/docs/mobile/2/edge-components/bottom-nav.md

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

resources/views/docs/mobile/2/edge-components/introduction.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ It doesn't even rely on the web view!
6767
Blade is an expressive and straightforward templating language that is very familiar to most Laravel users, and also
6868
super accessible to anyone who's used to writing HTML. All of our components are Blade components, which allows us to
6969
use Blade's battle-tested processing engine to rapidly compile the necessary transformation just in time.
70+
71+
## Where to define your native components
72+
73+
They can be defined in any Blade file, but for them to be processed, that Blade file will need to be rendered. We
74+
recommend putting your components in a Blade component that is likely to be rendered on every request, such as your
75+
main layout, e.g. `layouts/app.blade.php` or one of its child views/components.

0 commit comments

Comments
 (0)