Navigation Menu

Menus & Navigation · Guide 16 of 46

Open the live Navigation Menu demo →

Purpose

Site navigation with rich flyout panels.

Import

<script lang="ts">
	import { NavigationMenu } from 'bits-ui';
</script>

The registry names NavigationMenu as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.

Usage checklist

  • Use links for navigation and buttons for actions.
  • Preserve arrow-key, typeahead, and focus behavior provided by the primitive.
  • Test active, disabled, long-label, pointer, and keyboard states.

Secondary reference

After using the local example, consult the upstream Bits UI reference for exhaustive API details.

Continue