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", "posit...
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...
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_prop...
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(ite...
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) -> BaseU...
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_han...
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 componen...
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 Menu...
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...
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...
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. ...
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="ghos...
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 componen...
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 ...
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", ...
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 fo...
return MenuItem.create( render_=button( item, variant="ghost", class_name=ClassNames.ITEM, disabled=props.get("disabled", False), size=size, type="button", ...
if isinstance(item, tuple): label, on_click_handler = item return MenuItem.create( render_=button( label, variant="ghost", class_name=ClassNames.ITEM, disabled=props.get("d...
"""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: p...
return MenuItem.create( render_=button( label, variant="ghost", class_name=ClassNames.ITEM, disabled=props.get("disabled", False), on_click=on_click_handler, ...
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, ...
return MenuRoot.create( MenuTrigger.create( render_=( trigger if trigger else button( trigger_label, select_arrow(class_name="size-4 text-secondary-9"), ...
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", ...
else: items_children = [create_menu_item(item) for item in items] return MenuRoot.create( MenuTrigger.create( render_=( trigger if trigger else button( trigger_label, ...
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, ...
return MenuRoot.create( MenuTrigger.create( render_=( trigger if trigger else button( trigger_label, select_arrow(class_name="size-4 text-secondary-9"), ...
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...
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 = stati...
trigger_label, select_arrow(class_name="size-4 text-secondary-9"), variant="outline", class_name=ClassNames.TRIGGER, disabled=props.get("disabled", False), size=size, ...
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.crea...
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", ...
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) ...
trigger = staticmethod(MenuTrigger.create)
xt-secondary-9"), variant="outline", class_name=ClassNames.TRIGGER, disabled=props.get("disabled", False), size=size, type="button", ) ), ), ...
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...
portal = staticmethod(MenuPortal.create)
iant="outline", class_name=ClassNames.TRIGGER, disabled=props.get("disabled", False), size=size, type="button", ) ), ), MenuPortal.create( MenuPosit...
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(MenuRadioGrou...
positioner = staticmethod(MenuPositioner.create)
assNames.TRIGGER, disabled=props.get("disabled", False), size=size, type="button", ) ), ), MenuPortal.create( MenuPositioner.create( 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(Men...
popup = staticmethod(MenuPopup.create)
isabled=props.get("disabled", False), size=size, type="button", ) ), ), MenuPortal.create( MenuPositioner.create( MenuPopup.create( items_children, ...
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...
arrow = staticmethod(MenuArrow.create)
size=size, type="button", ) ), ), MenuPortal.create( MenuPositioner.create( MenuPopup.create( items_children, class_name=cn( ...
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.cr...
item = staticmethod(MenuItem.create)
type="button", ) ), ), MenuPortal.create( MenuPositioner.create( MenuPopup.create( items_children, class_name=cn( ClassNames.POPUP, ...
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(MenuCheckbox...
separator = staticmethod(MenuSeparator.create)
), ), MenuPortal.create( MenuPositioner.create( MenuPopup.create( items_children, class_name=cn( ClassNames.POPUP, f"rounded-[calc(var(--radi...
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 = ...
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)]", ...
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) sub...
group_label = staticmethod(MenuGroupLabel.create)
eate( MenuPopup.create( items_children, class_name=cn( ClassNames.POPUP, f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]", ), ), *...
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) s...
radio_group = staticmethod(MenuRadioGroup.create)
items_children, class_name=cn( ClassNames.POPUP, f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]", ), ), **positioner_props, ), ...
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.cre...
radio_item = staticmethod(MenuRadioItem.create)
class_name=cn( ClassNames.POPUP, f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]", ), ), **positioner_props, ), **portal_props, ), *children...
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(HighLevel...
radio_item_indicator = staticmethod(MenuRadioItemIndicator.create)
f"rounded-[calc(var(--radius-ui-{size})+0.25rem)]", ), ), **positioner_props, ), **portal_props, ), *children, **props, ) class Menu(ComponentNamespace): ...
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 = staticmet...
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) porta...
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 = sta...
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(Menu...
__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 = sta...
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 = staticmet...
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 = Li...
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", "...
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", "en...
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["absolu...
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"] LiteralCollisionAvo...
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: """Cla...
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 P...
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 rou...
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 P...
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 =...
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 P...
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" TRIGGE...
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 P...
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-...
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 P...
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-o...
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 P...
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-v...
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 P...
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 fo...
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 P...
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]:d...
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-v...
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"] L...
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 ...
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-[...
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-und...
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....
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" CON...
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-[-...
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] durat...
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...
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...
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-[end...
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=bott...
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)] transitio...
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-[-8p...
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-s...
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]:be...
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 ins...
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-[s...
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.""" ...
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 tra...
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="NavigationMe...
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,h...
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 me...
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"...
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-[endi...
@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> el...
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...
# 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 ...
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 th...
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 ...
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 navig...
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]...
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 mi...
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: ...
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 nav...
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. De...
# 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...
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...
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: ...
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...
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_:...
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 m...
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: ...
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: ""...
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) re...
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) ...
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 ...
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: ...
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_: ...
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.Tr...
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."...
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 ...
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...
@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(Navigatio...
# 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"...
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] @class...
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 ...
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.""" ...
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 =...
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 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 cre...
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 cre...
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 = "Navigat...
# 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...
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. disa...
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 cre...
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...
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" ...
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 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: ...
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...
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...
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) ...
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 = "Navig...
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: ...
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, *...
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. ren...
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" ...
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 t...
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: ...
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): ...
# 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...
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. Rend...
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 t...
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[C...
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 port...
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.""" ...
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 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 ...
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, **...
# 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 navigat...
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 ...
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 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.""" ...
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-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.""" ta...
# 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 t...
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 th...
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...
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, *...
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_p...
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.Pop...
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 t...
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) -> Ba...
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 th...
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: V...
# 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().cre...
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_met...
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) -> Ba...
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, ...
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 re...
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-...
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) -> BaseUICompon...
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) -> BaseU...
*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...
# 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 su...
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. Ren...
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) -> BaseUICompon...
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] @classmet...
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 pr...
props["data-slot"] = "navigation-menu-viewport"