Skip to content

Commit 3544f31

Browse files
committed
Update top-bar.md for top-bar-actions
1 parent 71bf7b9 commit 3544f31

File tree

1 file changed

+10
-8
lines changed
  • resources/views/docs/mobile/2/edge-components

1 file changed

+10
-8
lines changed

resources/views/docs/mobile/2/edge-components/top-bar.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,24 @@ A top bar with title and action buttons. This renders at the top of the screen.
3636
## Props
3737

3838
- `title` - The title text
39+
- `subtitle` - Secondary text displayed below the title (optional)
3940
- `show-navigation-icon` - Show back/menu button (optional, default: `true`)
40-
- `label` - If more than 5 actions, iOS will display an overflow menu and the labels assigned to each item
4141
- `background-color` - Background color. Hex code (optional)
4242
- `text-color` - Text color. Hex code (optional)
4343
- `elevation` - Shadow depth 0-24 (optional) [Android]
4444

4545
## Children
4646

47-
A `<native:top-bar>` can contain up to 10 `<native:top-bar-action>` elements. These populate the trailing edge,
48-
collapsing to a menu if there are too many.
47+
A `<native:top-bar>` can contain up to 10 `<native:top-bar-action>` elements. These are displayed on the trailing edge of the bar.
4948

50-
### Props
51-
- `id` - Unique identifier
52-
- `icon` - A named [icon](icons)
53-
- `label` - Accessibility label (optional)
54-
- `url` - A URL to navigate to in the web view (optional)
49+
On Android, the first 3 actions are shown as icon buttons; additional actions collapse into an overflow menu (⋮). On iOS, if more than 5 actions are provided, they collapse into an overflow menu.
50+
51+
### `<native:top-bar-action>` Props
52+
53+
- `id` - Unique identifier (required)
54+
- `icon` - A named [icon](icons) (required)
55+
- `label` - Text label for the action. Used for accessibility and displayed in overflow menus (optional but recommended)
56+
- `url` - A URL to navigate to when tapped
5557

5658
<aside>
5759

0 commit comments

Comments
 (0)