Skip to content

Commit 1e04e20

Browse files
devin-ai-integration[bot]carlosreflexcarlosabadia
authored
Add navigation menu component from Base UI (#25)
* Add navigation menu component from Base UI - Implement NavigationMenuBaseComponent extending BaseUIComponent - Add all navigation menu sub-components following existing patterns - Create HighLevelNavigationMenu wrapper for simple usage - Add to lazy loading system in __init__.py - Include example in demo application - Component renders and functions correctly with clickable buttons Co-Authored-By: Carlos Cutillas <[email protected]> * Remove HighLevelNavigationMenu component and update demo to use granular API - Removed HighLevelNavigationMenu class as requested - Updated demo to use ui.navigation_menu.root(), ui.navigation_menu.list(), etc. - Removed unused imports (foreach, button) - Fixed linting issues Co-Authored-By: Carlos Cutillas <[email protected]> * Enhance navigation menu demo to match Base UI example - Add missing props to NavigationMenuRoot (delay, close_delay, actions_ref, on_open_change_complete) - Update all component prop descriptions to match Base UI documentation exactly - Create comprehensive demo with Overview and Handbook dropdowns - Add rich content with links, titles, and descriptions - Update ClassNames for better styling and transitions - Include Portal structure for proper positioning - Fix syntax error: use rx.el instead of rx.html for HTML elements Co-Authored-By: Carlos Cutillas <[email protected]> * fixes * comment pre --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Carlos Cutillas <[email protected]> Co-authored-by: carlosabadia <[email protected]>
1 parent 892c9c3 commit 1e04e20

File tree

9 files changed

+987
-8
lines changed

9 files changed

+987
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fail_fast: true
22

33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.12.2
5+
rev: v0.12.3
66
hooks:
77
- id: ruff-check
88
files: ^reflex_ui/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.1"
44
description = "A set of reusable components built on top of Base UI and Tailwind, designed for use across any Reflex project"
55
readme = "README.md"
66
requires-python = ">=3.13"
7-
dependencies = ["reflex>=0.8.1"]
7+
dependencies = ["reflex>=0.8.2"]
88

99
[build-system]
1010
requires = ["hatchling", "uv-dynamic-versioning"]

reflex_ui/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"components.base.input": ["input"],
1414
"components.base.link": ["link"],
1515
"components.base.menu": ["menu"],
16+
"components.base.navigation_menu": ["navigation_menu"],
1617
"components.base.popover": ["popover"],
1718
"components.base.scroll_area": ["scroll_area"],
1819
"components.base.select": ["select"],

reflex_ui/__init__.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ from .components.base.gradient_profile import gradient_profile
1515
from .components.base.input import input
1616
from .components.base.link import link
1717
from .components.base.menu import menu
18+
from .components.base.navigation_menu import navigation_menu
1819
from .components.base.popover import popover
1920
from .components.base.scroll_area import scroll_area
2021
from .components.base.select import select
@@ -41,6 +42,7 @@ _REFLEX_UI_MAPPING = {
4142
"components.base.input": ["input"],
4243
"components.base.link": ["link"],
4344
"components.base.menu": ["menu"],
45+
"components.base.navigation_menu": ["navigation_menu"],
4446
"components.base.popover": ["popover"],
4547
"components.base.scroll_area": ["scroll_area"],
4648
"components.base.select": ["select"],
@@ -78,6 +80,7 @@ __all__ = [
7880
"input",
7981
"link",
8082
"menu",
83+
"navigation_menu",
8184
"popover",
8285
"scroll_area",
8386
"select",

reflex_ui/components/base/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ from .gradient_profile import gradient_profile
1515
from .input import input
1616
from .link import link
1717
from .menu import menu
18+
from .navigation_menu import navigation_menu
1819
from .popover import popover
1920
from .scroll_area import scroll_area
2021
from .select import select
@@ -43,6 +44,7 @@ __all__ = [
4344
"input",
4445
"link",
4546
"menu",
47+
"navigation_menu",
4648
"popover",
4749
"scroll_area",
4850
"select",

0 commit comments

Comments
 (0)