@@ -22,15 +22,15 @@ class ClassNames:
2222 ROOT = "relative"
2323 LIST = "flex items-center gap-1"
2424 ITEM = "relative"
25- TRIGGER = "flex items-center gap-1 px-3 py-2 text-sm font-medium rounded-md hover:bg-secondary-3 focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 cursor-pointer select-none"
26- CONTENT = "absolute top-full left-0 mt-1 min-w-48 origin-top-left border border-secondary-a4 bg-secondary-1 shadow-large rounded-md p-1 z-50 transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"
27- LINK = "block px-3 py-2 text-sm text-secondary-12 hover:bg-secondary-3 rounded-sm cursor-pointer select-none outline-none focus:bg-secondary-3"
28- ICON = "size-4 text-secondary-10"
25+ TRIGGER = "flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md hover:bg-secondary-3 focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 cursor-pointer select-none transition-colors "
26+ CONTENT = "absolute top-full left-0 mt-2 min-w-64 origin-top-left border border-secondary-a4 bg-secondary-1 shadow-large rounded-lg p-2 z-50 transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"
27+ LINK = "block px-3 py-2 text-sm text-secondary-12 hover:bg-secondary-3 rounded-md cursor-pointer select-none outline-none focus:bg-secondary-3 transition-colors "
28+ ICON = "size-4 text-secondary-10 transition-transform data-[popup-open]:rotate-180 "
2929 PORTAL = "relative"
3030 POSITIONER = "outline-none"
3131 POPUP = "outline-none"
32- VIEWPORT = "relative overflow-hidden"
33- ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
32+ VIEWPORT = "relative overflow-hidden rounded-lg "
33+ ARROW = "fill-secondary-1 stroke-secondary-a4 data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
3434 BACKDROP = "fixed inset-0 z-40"
3535
3636
@@ -58,6 +58,14 @@ class NavigationMenuRoot(NavigationMenuBaseComponent):
5858
5959 orientation : Var [LiteralNavigationMenuOrientation ]
6060
61+ delay : Var [int ]
62+
63+ close_delay : Var [int ]
64+
65+ actions_ref : Var [str ]
66+
67+ on_open_change_complete : EventHandler [passthrough_event_spec (bool )]
68+
6169 # The render prop.
6270 render_ : Var [Component ]
6371
@@ -70,7 +78,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
7078
7179
7280class NavigationMenuList (NavigationMenuBaseComponent ):
73- """Contains the navigation menu items. Renders a <ul > element."""
81+ """Contains a list of navigation menu items. Renders a <div > element."""
7482
7583 tag = "NavigationMenu.List"
7684
@@ -86,7 +94,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
8694
8795
8896class NavigationMenuItem (NavigationMenuBaseComponent ):
89- """Contains all parts of a navigation menu item. Renders a <li > element."""
97+ """An individual navigation menu item. Renders a <div > element."""
9098
9199 tag = "NavigationMenu.Item"
92100
@@ -104,7 +112,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
104112
105113
106114class NavigationMenuTrigger (NavigationMenuBaseComponent ):
107- """The button that toggles the content. Renders a <button> element."""
115+ """Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
108116
109117 tag = "NavigationMenu.Trigger"
110118
@@ -123,7 +131,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
123131
124132
125133class NavigationMenuContent (NavigationMenuBaseComponent ):
126- """Contains the content associated with each trigger . Renders a <div> element."""
134+ """A container for the content of the navigation menu item that is moved into the popup when the item is active . Renders a <div> element."""
127135
128136 tag = "NavigationMenu.Content"
129137
@@ -139,7 +147,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
139147
140148
141149class NavigationMenuLink (NavigationMenuBaseComponent ):
142- """A navigational link. Renders an <a> element."""
150+ """A link in the navigation menu that can be used to navigate to a different page or section . Renders an <a> element."""
143151
144152 tag = "NavigationMenu.Link"
145153
@@ -157,7 +165,7 @@ def create(cls, *children, **props) -> BaseUIComponent:
157165
158166
159167class NavigationMenuIcon (NavigationMenuBaseComponent ):
160- """An optional icon to render alongside the trigger text . Renders a <span> element."""
168+ """An icon that indicates that the trigger button opens a menu . Renders a <span> element."""
161169
162170 tag = "NavigationMenu.Icon"
163171
0 commit comments