Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions resources/views/docs/mobile/2/edge-components/top-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ A top bar with title and action buttons. This renders at the top of the screen.
<native:top-bar title="Dashboard" subtitle="Welcome back">
<native:top-bar-action
id="search"
label="Search"
icon="search"
:url="route('search')"
/>
<native:top-bar-action
id="settings"
icon="settings"
label="Settings"
url="https://yourapp.com/my-account"
/>
</native:top-bar>
Expand All @@ -35,6 +37,7 @@ A top bar with title and action buttons. This renders at the top of the screen.

- `title` - The title text
- `show-navigation-icon` - Show back/menu button (optional, default: `true`)
- `label` - If more than 5 actions, iOS will display an overflow menu and the labels assigned to each item
- `background-color` - Background color. Hex code (optional)
- `text-color` - Text color. Hex code (optional)
- `elevation` - Shadow depth 0-24 (optional) [Android]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ section to the JSON:
}
```

Then in your JavaScript, simply import the relevant functions from the plugin:
Run `npm install`, then in your JavaScript, simply import the relevant functions from the plugin:

```js
import { on, off, Microphone, Events } from '#nativephp';
Expand Down
Loading