Component changelog

NavigationMenu changelog

Component-specific release notes collected from the full changelog. This page filters the published entries that mention NavigationMenu.

Release

v1.2.0

npm
Minor Changes
  • befc825: Dialog, AlertDialog, Popover, Tooltip, HoverCard, menus, Select, Combobox and NavigationMenu take actionsRef with close(). Field and Form take actionsRef with validate(). Field takes controlled touched and dirty, and Field.Control takes onValueChange.

  • 07e6783: Add DirectionProvider and useDirection. Wrap an RTL app once with <DirectionProvider dir="rtl"> and every Rad UI component inside uses right-to-left keyboard navigation and positioning: Tabs, TabNav, ToggleGroup, Toolbar, RadioGroup, CheckboxGroup, Accordion, Menubar, menus, NavigationMenu, Splitter, Slider, Select and Combobox. A component's own dir prop still wins. Set dir on <html> as well so text and CSS follow.

  • befc825: NavigationMenu takes delay, closeDelay, orientation and onOpenChangeComplete; its Content plays enter and exit transitions and takes forceMount; a disabled Trigger doesn't open; Link takes active (aria-current="page") and closeOnClick.

  • ed15256: NavigationMenu.Viewport can anchor itself to the open item's trigger: pass side, align, sideOffset, alignOffset, anchor, collisionAvoidance, collisionPadding, collisionBoundary, positionMethod, sticky or disableAnchorTracking and it is positioned with collision handling, with data-side / data-align for styling. Without these props it stays laid out by CSS as before.

  • 07e6783: Add NavigationMenu.Viewport: one shared container that every open panel renders into. It exposes the open panel's size as --rad-navigation-menu-viewport-width / --rad-navigation-menu-viewport-height so CSS can animate between panels, and keeps Tab order following the triggers.

Release

v1.1.0

npm
Minor Changes
  • 8d5c556: feat: right-to-left support for menus, Select, Combobox, NavigationMenu, TabNav and ScrollArea

    • DropdownMenu, ContextMenu: new dir prop. In RTL, ArrowLeft/ArrowRight open and close submenus, submenus open on the left, and the portaled content (and submenus) carries dir. rtl is deprecated in favor of dir="rtl".
    • NavigationMenu, TabNav: new dir prop; arrow keys follow reading direction.
    • Select, Combobox: dir on the root now also applies to the portaled listbox.
    • ScrollArea: horizontal scroll math and scrollbar placement use the computed direction (logical CSS insets, RTL scroll range).

Release

v0.6.0

npm
Patch Changes
  • 3a9ef46Add configurable loop focus-wrapping options for Tabs, Disclosure, Tree, and NavigationMenu, including NavigationMenu content panels.