instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
r[bool]
# Props for different component parts
_item_props = {"close_on_click"}
_trigger_props = {"placeholder", "size", "close_on_click"}
_positioner_props = {
"align",
"align_offset",
"side",
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
|
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
| positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
} |
aceholder", "size", "close_on_click"}
_positioner_props = {
"align",
"align_offset",
"side",
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
|
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost | portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()} |
"align_offset",
"side",
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
|
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.I | trigger = props.pop("trigger", None) |
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
|
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props | items = props.pop("items", []) |
ding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
|
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
si | size = trigger_props.get("size", "md") |
od",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
|
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
| trigger_label = trigger_props.get("placeholder", "Open Menu") |
avoidance",
}
_portal_props = {"container"}
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
|
if isinstance(items, Var):
items_children = foreach(items, create_menu_item)
else:
items_children = [create_menu_item(item) for item in items]
return MenuRoot.create(
MenuTrigger.create(
render_=(
trigger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames. | def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
) |
children, **props) -> BaseUIComponent:
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
|
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
)
if isinstance(items, Var):
items_children = foreach(items, create_menu_item)
else:
items_children = [create_menu_item(item) for item in items]
return MenuRoot.create(
MenuTrigger.create(
render_=(
trigger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
di | if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
) |
"""Create a menu component.
Args:
*children: Additional children to include in the menu.
**props: Additional properties to apply to the menu component.
Returns:
The menu component.
"""
# Extract props for different parts
item_props = {k: props.pop(k) for k in cls._item_props & props.keys()}
trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()}
positioner_props = {
k: props.pop(k) for k in cls._positioner_props & props.keys()
}
portal_props = {k: props.pop(k) for k in cls._portal_props & props.keys()}
trigger = props.pop("trigger", None)
items = props.pop("items", [])
size = trigger_props.get("size", "md")
trigger_label = trigger_props.get("placeholder", "Open Menu")
def create_menu_item(item: str | tuple[str, EventHandler]) -> BaseUIComponent:
if isinstance(item, tuple):
|
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
)
if isinstance(items, Var):
items_children = foreach(items, create_menu_item)
else:
| label, on_click_handler = item |
BaseUIComponent:
if isinstance(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
)
|
return MenuRoot.create(
MenuTrigger.create(
render_=(
trigger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
| if isinstance(items, Var):
items_children = foreach(items, create_menu_item)
else:
items_children = [create_menu_item(item) for item in items] |
nce(item, tuple):
label, on_click_handler = item
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
)
if isinstance(items, Var):
|
else:
items_children = [create_menu_item(item) for item in items]
return MenuRoot.create(
MenuTrigger.create(
render_=(
trigger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
| items_children = foreach(items, create_menu_item) |
return MenuItem.create(
render_=button(
label,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
on_click=on_click_handler,
size=size,
type="button",
),
key=label,
**item_props,
)
return MenuItem.create(
render_=button(
item,
variant="ghost",
class_name=ClassNames.ITEM,
disabled=props.get("disabled", False),
size=size,
type="button",
),
key=item,
**item_props,
)
if isinstance(items, Var):
items_children = foreach(items, create_menu_item)
else:
|
return MenuRoot.create(
MenuTrigger.create(
render_=(
trigger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
| items_children = [create_menu_item(item) for item in items] |
gger
if trigger
else button(
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
|
menu = Menu()
| class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create) |
trigger_label,
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
|
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| root = staticmethod(MenuRoot.create) |
select_arrow(class_name="size-4 text-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
|
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| trigger = staticmethod(MenuTrigger.create) |
xt-secondary-9"),
variant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
|
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| portal = staticmethod(MenuPortal.create) |
iant="outline",
class_name=ClassNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
|
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| positioner = staticmethod(MenuPositioner.create) |
assNames.TRIGGER,
disabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
|
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| popup = staticmethod(MenuPopup.create) |
isabled=props.get("disabled", False),
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
|
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| arrow = staticmethod(MenuArrow.create) |
size=size,
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
|
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| item = staticmethod(MenuItem.create) |
type="button",
)
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
|
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| separator = staticmethod(MenuSeparator.create) |
),
),
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
|
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| group = staticmethod(MenuGroup.create) |
MenuPortal.create(
MenuPositioner.create(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
|
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| group_label = staticmethod(MenuGroupLabel.create) |
eate(
MenuPopup.create(
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
|
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| radio_group = staticmethod(MenuRadioGroup.create) |
items_children,
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
|
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| radio_item = staticmethod(MenuRadioItem.create) |
class_name=cn(
ClassNames.POPUP,
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
|
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| radio_item_indicator = staticmethod(MenuRadioItemIndicator.create) |
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
|
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| checkbox_item = staticmethod(MenuCheckboxItem.create) |
)+0.25rem)]",
),
),
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
|
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create) |
**positioner_props,
),
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
|
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| submenu_root = staticmethod(MenuSubMenuRoot.create) |
**portal_props,
),
*children,
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
|
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| submenu_trigger = staticmethod(MenuSubMenuTrigger.create) |
**props,
)
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
|
__call__ = staticmethod(HighLevelMenu.create)
menu = Menu()
| class_names = ClassNames |
class Menu(ComponentNamespace):
"""Namespace for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
|
menu = Menu()
| __call__ = staticmethod(HighLevelMenu.create) |
ce for Menu components."""
root = staticmethod(MenuRoot.create)
trigger = staticmethod(MenuTrigger.create)
portal = staticmethod(MenuPortal.create)
positioner = staticmethod(MenuPositioner.create)
popup = staticmethod(MenuPopup.create)
arrow = staticmethod(MenuArrow.create)
item = staticmethod(MenuItem.create)
separator = staticmethod(MenuSeparator.create)
group = staticmethod(MenuGroup.create)
group_label = staticmethod(MenuGroupLabel.create)
radio_group = staticmethod(MenuRadioGroup.create)
radio_item = staticmethod(MenuRadioItem.create)
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
checkbox_item = staticmethod(MenuCheckboxItem.create)
checkbox_item_indicator = staticmethod(MenuCheckboxItemIndicator.create)
submenu_root = staticmethod(MenuSubMenuRoot.create)
submenu_trigger = staticmethod(MenuSubMenuTrigger.create)
class_names = ClassNames
__call__ = staticmethod(HighLevelMenu.create)
| menu = Menu() | |
"""Custom navigation menu component."""
|
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 | from typing import Literal |
"""Custom navigation menu component."""
from typing import Literal
|
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:o | from reflex.components.component import Component, ComponentNamespace |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
|
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4" | from reflex.event import EventHandler, passthrough_event_spec |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
|
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40p | from reflex.utils.imports import ImportVar |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
|
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transiti | from reflex.vars.base import Var |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
|
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.2 | from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
|
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opaci | LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"] |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
|
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=le | LiteralSide = Literal["top", "right", "bottom", "left"] |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
|
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data | LiteralAlign = Literal["start", "center", "end"] |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
|
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data- | LiteralPositionMethod = Literal["absolute", "fixed"] |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
|
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inheri | ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12" |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
|
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focu | LIST = "relative flex" |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
|
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none | ITEM = "relative" |
"""Custom navigation menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
|
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
PORTAL = ""
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1 | TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4" |
reflex.utils.imports import ImportVar
from reflex.vars.base import Var
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
LiteralNavigationMenuOrientation = Literal["horizontal", "vertical"]
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
class ClassNames:
"""Class names for navigation menu components."""
ROOT = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
|
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
PORTAL = ""
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data- | CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]" |
T = "min-w-max rounded-lg bg-secondary-1 p-1 text-secondary-12"
LIST = "relative flex"
ITEM = "relative"
TRIGGER = "box-border flex items-center justify-center gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
|
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
PORTAL = ""
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform | LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4" |
ter gap-1.5 h-10 px-2 xs:px-3.5 m-0 rounded-ui-md bg-secondary-1 text-secondary-12 font-medium text-[0.925rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
|
PORTAL = ""
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[ | ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10" |
rem] xs:text-base leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
|
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transfor | PORTAL = "" |
e leading-6 select-none no-underline hover:bg-secondary-3 active:bg-secondary-3 data-[popup-open]:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
CONTENT = "w-max max-w-[calc(100vw-40px)] sm:max-w-[600px] p-6 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[starting-style]:data-[activation-direction=left]:translate-x-[-50%] data-[starting-style]:data-[activation-direction=right]:translate-x-[50%] data-[ending-style]:data-[activation-direction=left]:translate-x-[50%] data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
LINK = "block rounded-ui-md p-2 xs:p-3 no-underline text-inherit hover:bg-secondary-3 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
PORTAL = ""
|
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
| POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5" |
visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-4"
ICON = "transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180 text-secondary-10"
PORTAL = ""
POSITIONER = "box-border h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)] transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] before:absolute before:content-[''] data-[instant]:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
|
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation men | POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]" |
0px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
|
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation menu item that should be currently open. When non-nullish, | VIEWPORT = "relative h-full w-full overflow-hidden" |
]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
|
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation menu item that should be currently open. When non-nullish, the menu will be open. When nullish, the menu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value pro | ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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" |
ight]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
|
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation menu item that should be currently open. When non-nullish, the menu will be open. When nullish, the menu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[st | BACKDROP = "fixed inset-0 z-40" |
:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
|
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation menu item that should be currently open. When non-nullish, the menu will be open. When nullish, the menu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How lo | class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False) |
POPUP = "relative h-[var(--popup-height)] w-max origin-[var(--transform-origin)] rounded-lg bg-secondary-1 text-secondary-12 shadow-large border border-secondary-a4 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
|
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
tag = "NavigationMenu.Root"
# The controlled value of the navigation menu item that should be currently open. When non-nullish, the menu will be open. When nullish, the menu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation m | library = f"{PACKAGE_NAME}/navigation-menu" |
tyle]:opacity-0 min-[500px]:w-[var(--popup-width)] xs:w-[var(--popup-width)]"
VIEWPORT = "relative h-full w-full overflow-hidden"
ARROW = "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] 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"
BACKDROP = "fixed inset-0 z-40"
class NavigationMenuBaseComponent(BaseUIComponent):
"""Base component for navigation menu components."""
library = f"{PACKAGE_NAME}/navigation-menu"
@property
def import_var(self):
"""Return the import variable for the navigation menu component."""
return ImportVar(tag="NavigationMenu", package_path="", install=False)
class NavigationMenuRoot(NavigationMenuBaseComponent):
"""Groups all parts of the navigation menu. Renders a <nav> element at the root, or <div> element when nested."""
|
# The controlled value of the navigation menu item that should be currently open. When non-nullish, the menu will be open. When nullish, the menu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed | tag = "NavigationMenu.Root" |
enu will be closed. To render an uncontrolled navigation menu, use the defaultValue prop instead.
value: Var[str]
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props) |
# The uncontrolled value of the item that should be initially selected. To render a controlled navigation menu, use the value prop instead.
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
|
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-sl | props["data-slot"] = "navigation-menu" |
default_value: Var[str]
# Callback fired when the value changes.
on_value_change: EventHandler[passthrough_event_spec(str, dict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
|
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create | class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props) |
ict)]
# The orientation of the navigation menu.
orientation: Var[LiteralNavigationMenuOrientation]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
|
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the | tag = "NavigationMenu.List" |
tion]
# How long to wait before opening the navigation menu. Specified in milliseconds. Defaults to 50.
delay: Var[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props) |
ar[int]
# How long to wait before closing the navigation menu. Specified in milliseconds. Defaults to 50.
close_delay: Var[int]
# Event handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
|
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Compon | props["data-slot"] = "navigation-menu-list" |
nt handler called after any animations complete when the navigation menu is closed.
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
|
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def cr | class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props) |
hrough_event_spec(bool)]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
|
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
re | tag = "NavigationMenu.Item" |
n, **props) -> BaseUIComponent:
"""Create the navigation menu root component."""
props["data-slot"] = "navigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def cr | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props) |
vigation-menu"
cls.set_class_name(ClassNames.ROOT, props)
return super().create(*children, **props)
class NavigationMenuList(NavigationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
|
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "Nav | props["data-slot"] = "navigation-menu-item" |
gationMenuBaseComponent):
"""Contains a list of navigation menu items. Renders a <div> element."""
tag = "NavigationMenu.List"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
|
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu lin | class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props) |
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu list component."""
props["data-slot"] = "navigation-menu-list"
cls.set_class_name(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
|
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
| tag = "NavigationMenu.Trigger" |
(ClassNames.LIST, props)
return super().create(*children, **props)
class NavigationMenuItem(NavigationMenuBaseComponent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu lin | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props) |
onent):
"""An individual navigation menu item. Renders a <div> element."""
tag = "NavigationMenu.Item"
value: Var[str]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
|
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmeth | props["data-slot"] = "navigation-menu-trigger" |
op.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu item component."""
props["data-slot"] = "navigation-menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
|
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-i | class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props) |
menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
|
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon | tag = "NavigationMenu.Content" |
props)
class NavigationMenuTrigger(NavigationMenuBaseComponent):
"""Opens the navigation menu popup when hovered or clicked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-i | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props) |
icked, revealing the associated content. Renders a <button> element."""
tag = "NavigationMenu.Trigger"
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
|
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
| props["data-slot"] = "navigation-menu-content" |
er interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
|
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
| class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props) |
nt:
"""Create the navigation menu trigger component."""
props["data-slot"] = "navigation-menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
|
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to | tag = "NavigationMenu.Link" |
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class NavigationMenuContent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
| def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props) |
ontent(NavigationMenuBaseComponent):
"""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."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
|
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mo | props["data-slot"] = "navigation-menu-link" |
ctive. Renders a <div> element."""
tag = "NavigationMenu.Content"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
|
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
| class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props) |
ls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu content component."""
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
|
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().crea | tag = "NavigationMenu.Icon" |
"
props["data-slot"] = "navigation-menu-content"
cls.set_class_name(ClassNames.CONTENT, props)
return super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
| def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props) |
turn super().create(*children, **props)
class NavigationMenuLink(NavigationMenuBaseComponent):
"""A link in the navigation menu that can be used to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
|
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle coll | props["data-slot"] = "navigation-menu-icon" |
sed to navigate to a different page or section. Renders an <a> element."""
tag = "NavigationMenu.Link"
active: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
|
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to 0.
align_offset: Var[int]
# Which side of the anchor element to align the content against. May automatically change to avoid collisions. Defaults to "bottom".
side: Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collisio | class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props) |
nder prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu link component."""
props["data-slot"] = "navigation-menu-link"
cls.set_class_name(ClassNames.LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
|
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to 0.
align_offset: Var[int]
# Which side of the anchor element to a | tag = "NavigationMenu.Portal" |
LINK, props)
return super().create(*children, **props)
class NavigationMenuIcon(NavigationMenuBaseComponent):
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
|
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to 0.
align_offset: Var[int]
# Which side of the anchor element to align the content against. May automatically change to avoid collisions. Defaults to "bottom".
side: Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collisio | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props) |
"""An icon that indicates that the trigger button opens a menu. Renders a <span> element."""
tag = "NavigationMenu.Icon"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
|
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
tag = "NavigationMenu.Positioner"
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to 0.
align_offset: Var[int]
# Which side of the anchor element to align the content against. May automatically change to avoid collisions. Defaults to "bottom".
side: Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defau | props["data-slot"] = "navigation-menu-portal" |
icon component."""
props["data-slot"] = "navigation-menu-icon"
cls.set_class_name(ClassNames.ICON, props)
return super().create(*children, **props)
class NavigationMenuPortal(NavigationMenuBaseComponent):
"""A portal element that moves the content to a different part of the DOM."""
tag = "NavigationMenu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the content is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu portal component."""
props["data-slot"] = "navigation-menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class NavigationMenuPositioner(NavigationMenuBaseComponent):
"""Positions the content against the trigger. Renders a <div> element."""
|
# Determines how to handle collisions when positioning the content.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to 0.
align_offset: Var[int]
# Which side of the anchor element to align the content against. May automatically change to avoid collisions. Defaults to "bottom".
side: Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collision boundary. Defaults to 5.
collision_padding: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancest | tag = "NavigationMenu.Positioner" |
the anchor element to align the content against. May automatically change to avoid collisions. Defaults to "bottom".
side: Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collision boundary. Defaults to 5.
collision_padding: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassN | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props) |
Var[LiteralSide]
# Distance between the anchor and the content in pixels. Defaults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the content. Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collision boundary. Defaults to 5.
collision_padding: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
|
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent: | props["data-slot"] = "navigation-menu-positioner" |
Use it to prevent the arrow element from hanging out of the rounded corners of a content. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collision boundary. Defaults to 5.
collision_padding: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
|
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
| class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props) |
Additional space to maintain from the edge of the collision boundary. Defaults to 5.
collision_padding: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
|
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned agai | tag = "NavigationMenu.Popup" |
ing: Var[int]
# An element or a rectangle that delimits the area that the content is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
| def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props) |
ipping-ancestors".
collision_boundary: Var[str]
sticky: Var[bool]
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
|
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create | props["data-slot"] = "navigation-menu-popup" |
to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
|
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class NavigationMenuBackdrop(NavigationMenuBaseComponent):
"""An optional backdrop element that can be used to close the navigation menu. Renders a <div> element."""
tag = "NavigationMenu.Backdrop"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu backdrop component."""
props["data-slot"] = "navigation-menu-backdrop"
| class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props) |
*children, **props) -> BaseUIComponent:
"""Create the navigation menu positioner component."""
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
|
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class NavigationMenuBackdrop(NavigationMenuBaseComponent):
"""An optional backdrop element that can be u | tag = "NavigationMenu.Viewport" |
props["data-slot"] = "navigation-menu-positioner"
props.setdefault("side_offset", 10)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
|
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class NavigationMenuBackdrop(NavigationMenuBaseComponent):
"""An optional backdrop element that can be used to close the navigation menu. Renders a <div> element."""
tag = "NavigationMenu.Backdrop"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu backdrop component."""
props["data-slot"] = "navigation-menu-backdrop"
| def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
props["data-slot"] = "navigation-menu-viewport"
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props) |
e(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class NavigationMenuPopup(NavigationMenuBaseComponent):
"""A container for the navigation menu content. Renders a <div> element."""
tag = "NavigationMenu.Popup"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu popup component."""
props["data-slot"] = "navigation-menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class NavigationMenuViewport(NavigationMenuBaseComponent):
"""An optional viewport element that masks the content when it overflows. Renders a <div> element."""
tag = "NavigationMenu.Viewport"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu viewport component."""
|
cls.set_class_name(ClassNames.VIEWPORT, props)
return super().create(*children, **props)
class NavigationMenuArrow(NavigationMenuBaseComponent):
"""Displays an element positioned against the navigation menu anchor. Renders a <div> element."""
tag = "NavigationMenu.Arrow"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the navigation menu arrow component."""
props["data-slot"] = "navigation-menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class NavigationMenuBackdrop(NavigationMenuBaseComponent):
"""An optional backdrop element that can be used to close the navigation menu. Renders a <div> element."""
tag = "NavigationMenu.Backdrop"
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create | props["data-slot"] = "navigation-menu-viewport" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.