> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/blocks/menu.md).

# Menu

This block type renders a [menu](/developer-docs/framework/menus.md).

### Parameters

* **menu** - the name of a menu to render;
* **attributes** - the menu HTML attributes.

### Example

The code below renders the user account menu with an extra `my-custom-class` CSS class.

```php
echo ( new HivePress\Blocks\Menu(
	[
		'menu'       => 'user_account',

		'attributes' => [
			'class' => [ 'my-custom-class' ],
		],
	]
) )->render();
```
