Skip to content

Commit

Permalink
Format class names
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 27, 2024
1 parent 6021f7b commit 83b1fbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/advanced-features/navigation-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ use Hyde\Framework\Features\Navigation\NavigationMenu;
$menu = new NavigationMenu($items = []);
```

Here is how to provide an array or Collection of NavigationItem and/or NavigationGroup instances directly to the constructor.
Here is how to provide an array or Collection of `NavigationItem` and/or `NavigationGroup` instances directly to the constructor.

```php
use Hyde\Framework\Features\Navigation\NavigationMenu;
Expand Down Expand Up @@ -218,7 +218,7 @@ $menu = (new NavigationMenu())

### Accessing Items in the Menu

You can access all items in the menu by calling the `getItems` method, which will return a Collection of all items in the menu.
You can access all items in the menu by calling the `getItems` method, which will return a `Collection` of all items in the menu.

```php
$items = $menu->getItems();
Expand All @@ -232,7 +232,7 @@ The `NavigationItem` class is an abstraction for a navigation menu item containi

### Quick Reference

Here is a quick reference of the methods available on the NavigationItem class:
Here is a quick reference of the methods available on the `NavigationItem` class:

```php
use Hyde\Framework\Features\Navigation\NavigationItem;
Expand Down Expand Up @@ -268,7 +268,7 @@ This will output an anchor tag with the correct link and label, and if the item

### Creating Navigation Items

There are two syntaxes for creating NavigationItem instances, you can use a standard constructor or the static create method.
There are two syntaxes for creating `NavigationItem` instances, you can use a standard constructor or the static create method.
Both options provide the exact same signature and functionality, so it's just a matter of preference which one you use.

The constructors take three parameters: the destination, the label, and the optional priority.
Expand Down

0 comments on commit 83b1fbc

Please sign in to comment.