Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
description: Build accessible navigation menus with Radix UI in Webstudio.
Navigation Menu
Based on Radix Navigation Menu
The Navigation Menu component creates accessible, multi-level navigation with dropdown menus. It's ideal for website headers with organized sections of links.
When to Use
Use Navigation Menu for:
- Main website navigation in headers
- Complex navigation with multiple categories
- Mega menus with organized link groups
- Any multi-level navigation structure
Structure
The Navigation Menu component consists of:
| Component | Description |
|---|---|
| Navigation Menu | The root container |
| Navigation Menu List | Container for menu items |
| Navigation Menu Item | Wrapper for each top-level item |
| Navigation Menu Trigger | Button that opens a dropdown |
| Navigation Menu Content | The dropdown panel |
| Navigation Menu Link | A navigation link |
| Navigation Menu Viewport | Where dropdown content renders |
How to Use
- Drag a Navigation Menu component from Components > Radix onto your canvas
- The component comes with sample navigation structure
- Edit Navigation Menu Links for simple links
- Use Navigation Menu Trigger + Content for dropdown sections
- Add your links and content inside each dropdown
- Style all parts to match your design
Simple Link (No Dropdown)
For a link without a dropdown, use just a Navigation Menu Link inside the Navigation Menu Item.
Dropdown Menu
For a dropdown:
- Add a Navigation Menu Trigger (the clickable text)
- Add Navigation Menu Content (the dropdown panel)
- Add your links and content inside Content
Properties
Some commonly used properties (see the Settings panel for all available options):
Navigation Menu Link
| Property | Description |
|---|---|
| href | The URL the link points to |
Navigation Menu Content
| Property | Description |
|---|---|
| (Positioning) | Content automatically positions below the trigger |
Styling States
Some common states (you can also create custom states):
- Open (
[data-state=open]) - Dropdown is visible - Closed (
[data-state=closed]) - Dropdown is hidden - Active - Current page indicator
Building a Mega Menu
For large navigation with multiple columns:
- Inside Navigation Menu Content, create a grid layout
- Add multiple columns with Link groups
- Optionally add featured content or images
- Use the Viewport to control the dropdown container
Related Videos
{% embed url="https://www.youtube.com/watch?v=1xSrvEkXWws" %}