Renders a vertical navigation menu.
It is commonly placed within drawers or sidebars.
For hierarchical menu structures, use vertical_nav_nested/1
within the
:item
slot.
To include sections in your drawer or sidebar that are not part of the
navigation menu (like informational text or a site search), use the
vertical_nav_section/1
component.
<.vertical_nav label="Main"> <:item> <.link navigate={~p"/dashboard"}>Dashboard</.link> </:item> <:item> <.vertical_nav_nested> <:title>Content</:title> <:item current_page> <.link navigate={~p"/posts"}>Posts</.link> </:item> <:item> <.link navigate={~p"/comments"}>Comments</.link> </:item> </.vertical_nav_nested> </:item> </.vertical_nav>