You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eea9041
Browse filesBrowse the repository at this point in the historyBrowse files
Document menu sections, rows, submenus, subtitles and checkmarks
Covers NavAction::section(), NavAction::row(), ->subtitle(), ->checked()
and submenus from nested items(), with a Notes-style example, how each
looks on iOS and Android, and the matching Blade props on
<native:top-bar-action>. Pressable and list-item menus still draw a flat
list, which the menus page now says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: resources/views/docs/mobile/4/edge-components/top-bar.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,13 +96,17 @@ On iOS, if more than 5 actions are provided, they collapse into an overflow menu
96
96
97
97
### `<native:top-bar-action>` Props
98
98
99
-
-`id` - Unique identifier (required)
99
+
-`id` - Unique identifier (required, except on a `section` or `row`)
100
100
-`icon` - A named [icon](icon#icon-name-reference) — the cross-platform fallback (optional if a platform icon is given)
101
101
-`ios-icon` / `android-icon` - Per-platform icon overrides: an enum case (`App\Icons\Ios`, `App\Icons\Android`, `App\Icons\AndroidOutlined`) or a raw symbol string. `ios` / `android` are accepted as shorthand (optional). See [Platform icons](#platform-icons)
102
102
-`material-variant` - Material style hint for Android, e.g. `outlined` (optional). Set automatically when you use an `AndroidOutlined` enum case
103
103
-`label` - Text label. Used for accessibility and displayed in overflow menus (optional but recommended)
104
104
-`url` - A URL to navigate to when tapped (optional)
105
105
-`destructive` - Render in the destructive (red) tint (optional, boolean)
106
+
-`subtitle` - A second, smaller line under the label, for an action inside a menu (optional, string)
107
+
-`checked` - Show a checkmark, for an action inside a menu (optional, boolean)
108
+
-`section` - Group the actions nested inside this one, with `label` as the heading (optional, boolean). See [Menus](#menus)
109
+
-`row` - Show the actions nested inside this one as a compact row of icon-over-label buttons (optional, boolean). See [Menus](#menus)
106
110
107
111
<aside>
108
112
@@ -111,6 +115,31 @@ method on your screen instead of navigating, use `@tap="methodName"`.
111
115
112
116
</aside>
113
117
118
+
### Menus
119
+
120
+
Nest `<native:top-bar-action>` elements inside an action and it opens a pull-down menu of them instead of firing a
121
+
press. Inside a menu, an action with its own nested actions is a submenu, and the `section` and `row` attributes
122
+
group items the way [`NavAction::section()` and `NavAction::row()`](menus#sections-rows-and-submenus) do:
0 commit comments