instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
LiteralSide = Literal["top", "right", "bottom", "left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for m... | LiteralMenuOrientation = Literal["vertical", "horizontal"] |
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-c... | LiteralSide = Literal["top", "right", "bottom", "left"] |
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [... | LiteralAlign = Literal["start", "center", "end"] |
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-non... | LiteralPositionMethod = Literal["absolute", "fixed"] |
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/tri... | LiteralCollisionAvoidance = Literal["flip", "shift", "auto"] |
"""Custom menu component."""
from typing import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
from reflex.event import EventHandler, passthrough_event_spec
from reflex.utils.imports import ImportVar
from reflex.vars.base import Var
fr... |
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 te... | LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"] |
import Literal
from reflex.components.component import Component, ComponentNamespace
from reflex.components.core.foreach import foreach
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.button import... |
class MenuBaseComponent(BaseUIComponent):
"""Base component for menu components."""
library = f"{PACKAGE_NAME}/menu"
@property
def import_var(self):
"""Return the import variable for the menu component."""
return ImportVar(tag="Menu", package_path="", install=False)
class MenuRoot... | class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-... |
ComponentNamespace
from reflex.components.core.foreach import foreach
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.button import button
from reflex_ui.components.base_ui import PACKAGE_NAME, Bas... |
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-9... | TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger" |
Var
from reflex_ui.components.base.button import button
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
from reflex_ui.components.icons.others import select_arrow
from reflex_ui.utils.twmerge import cn
LiteralOpenChangeReason = Literal[
"arrowKey",
"escapeKey",
"select",
"hover"... |
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:... | PORTAL = "relative" |
onents.base.button import button
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
from reflex_ui.components.icons.others import select_arrow
from reflex_ui.utils.twmerge import cn
LiteralOpenChangeReason = Literal[
"arrowKey",
"escapeKey",
"select",
"hover",
"click",
"focu... |
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none sc... | ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current" |
, BaseUIComponent
from reflex_ui.components.icons.others import select_arrow
from reflex_ui.utils.twmerge import cn
LiteralOpenChangeReason = Literal[
"arrowKey",
"escapeKey",
"select",
"hover",
"click",
"focus",
"dismiss",
"typeahead",
"tab",
]
LiteralMenuOrientation = Literal["ver... |
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start"
ITEM_INDICATOR = "text-current"
... | POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollb... |
"left"]
LiteralAlign = Literal["start", "center", "end"]
LiteralPositionMethod = Literal["absolute", "fixed"]
LiteralCollisionAvoidance = Literal["flip", "shift", "auto"]
LiteralMenuSize = Literal["xs", "sm", "md", "lg", "xl"]
class ClassNames:
"""Class names for menu components."""
TRIGGER = "flex min-w-48... |
ITEM_INDICATOR = "text-current"
ITEM_TEXT = "text-start"
GROUP = "p-1"
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[s... | ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start" |
nts."""
TRIGGER = "flex min-w-48 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-curre... |
ITEM_TEXT = "text-start"
GROUP = "p-1"
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top... | ITEM_INDICATOR = "text-current" |
8 items-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[... |
GROUP = "p-1"
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=to... | ITEM_TEXT = "text-start" |
n gap-3 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto ori... |
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
... | GROUP = "p-1" |
e text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-o... |
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
POSITIONER = "outline-none"
RADIO_GROUP = ""
... | GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold" |
utline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 s... |
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
POSITIONER = "outline-none"
RADIO_GROUP = ""
RADIO_ITEM = "grid min-w-(--anchor-width) g... | SEPARATOR = "-mx-1 my-1 h-px bg-muted" |
ble:ring-primary-4 group/trigger"
PORTAL = "relative"
ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transform-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opa... |
POSITIONER = "outline-none"
RADIO_GROUP = ""
RADIO_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 s... | ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180" |
rm-origin) p-1 border border-secondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
IT... |
RADIO_GROUP = ""
RADIO_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
RADIO_ITEM_INDICA... | POSITIONER = "outline-none" |
ondary-a4 bg-secondary-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
ITEM = "grid min-w-(--anchor-width... |
RADIO_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
RADIO_ITEM_INDICATOR = "text-current"
... | RADIO_GROUP = "" |
y-1 shadow-large transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto... |
RADIO_ITEM_INDICATOR = "text-current"
CHECKBOX_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-... | RADIO_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1" |
min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start"
ITEM_INDICATOR = "text-current"
ITEM_TEXT = "... |
CHECKBOX_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
CHECKBOX_ITEM_INDICATOR = "text-cur... | RADIO_ITEM_INDICATOR = "text-current" |
o] items-center gap-2 text-sm select-none font-medium group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-12 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1 text-start"
ITEM_INDICATOR = "text-current"
ITEM_TEXT = "text-start"
GROUP = "p-1"
GROUP_LA... |
CHECKBOX_ITEM_INDICATOR = "text-current"
SUBMENU_TRIGGER = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scro... | CHECKBOX_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1" |
xt-start"
GROUP = "p-1"
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data... |
SUBMENU_TRIGGER = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
class MenuBaseComponent(BaseUICompo... | CHECKBOX_ITEM_INDICATOR = "text-current" |
"px-2 py-1.5 text-sm font-semibold"
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
ARROW = "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
POSITIONER = "out... |
class MenuBaseComponent(BaseUIComponent):
"""Base component for menu components."""
library = f"{PACKAGE_NAME}/menu"
@property
def import_var(self):
"""Return the import variable for the menu component."""
return ImportVar(tag="Menu", package_path="", install=False)
class MenuRoot... | SUBMENU_TRIGGER = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1" |
e=top]:rotate-180"
POSITIONER = "outline-none"
RADIO_GROUP = ""
RADIO_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted... |
class MenuRoot(MenuBaseComponent):
"""Groups all parts of the menu. Doesn't render its own HTML element."""
tag = "Menu.Root"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu is currently... | class MenuBaseComponent(BaseUIComponent):
"""Base component for menu components."""
library = f"{PACKAGE_NAME}/menu"
@property
def import_var(self):
"""Return the import variable for the menu component."""
return ImportVar(tag="Menu", package_path="", install=False) |
d min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
RADIO_ITEM_INDICATOR = "text-current"
CHECKBOX_ITEM = "g... |
@property
def import_var(self):
"""Return the import variable for the menu component."""
return ImportVar(tag="Menu", package_path="", install=False)
class MenuRoot(MenuBaseComponent):
"""Groups all parts of the menu. Doesn't render its own HTML element."""
tag = "Menu.Root"
# ... | library = f"{PACKAGE_NAME}/menu" |
center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
RADIO_ITEM_INDICATOR = "text-current"
CHECKBOX_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] item... |
class MenuRoot(MenuBaseComponent):
"""Groups all parts of the menu. Doesn't render its own HTML element."""
tag = "Menu.Root"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu is currently... | def import_var(self):
"""Return the import variable for the menu component."""
return ImportVar(tag="Menu", package_path="", install=False) |
data-[highlighted]:bg-secondary-3 scroll-m-1"
RADIO_ITEM_INDICATOR = "text-current"
CHECKBOX_ITEM = "grid min-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-non... |
class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element."""
tag = "Menu.Trigger"
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to True... | class MenuRoot(MenuBaseComponent):
"""Groups all parts of the menu. Doesn't render its own HTML element."""
tag = "Menu.Root"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu is currently op... |
-w-(--anchor-width) grid-cols-[1fr_auto] items-center gap-2 text-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] text-secondary-11 cursor-pointer outline-none data-[highlighted]:bg-secondary-3 scroll-m-1"
CHECKBOX_ITEM_INDICATOR = "text-current"
SUBMENU_TRIGGER = "g... |
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu is currently open.
open: Var[bool]
# Event handler called when the menu is opened or closed.
on_open_change: EventHandler[passthrough_ev... | tag = "Menu.Root" |
# - False: user interaction with the rest of the document is allowed.
modal: Var[bool]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# Whether the menu should also open when the trigger is hovered.
open_on_hover: Var[bool]
# How long to wai... |
class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element."""
tag = "Menu.Trigger"
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to True... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu root component."""
props["data-slot"] = "menu"
return super().create(*children, **props) |
the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# Whether the menu should also open when the trigger is hovered.
open_on_hover: Var[bool]
# How long to wait before the menu may be opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults... |
return super().create(*children, **props)
class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element."""
tag = "Menu.Trigger"
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered elem... | props["data-slot"] = "menu" |
ar[bool]
# Whether the menu should also open when the trigger is hovered.
open_on_hover: Var[bool]
# How long to wait before the menu may be opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 100.
delay: Var[int]
# How long to wait before closing the menu tha... |
class MenuPortal(MenuBaseComponent):
"""A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>."""
tag = "Menu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal moun... | class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element."""
tag = "Menu.Trigger"
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to True.
... |
# How long to wait before the menu may be opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 100.
delay: Var[int]
# How long to wait before closing the menu that was opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 0.
close_del... |
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to True.
native_button: Var[bool]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]... | tag = "Menu.Trigger" |
ist is reached while using the arrow keys. Defaults to True.
loop: Var[bool]
# The visual orientation of the menu. Controls whether roving focus uses up/down or left/right arrow keys. Defaults to 'vertical'.
orientation: Var[LiteralMenuOrientation]
@classmethod
def create(cls, *children, **props) ... |
class MenuPortal(MenuBaseComponent):
"""A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>."""
tag = "Menu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal moun... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu trigger component."""
props["data-slot"] = "menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props) |
the menu. Controls whether roving focus uses up/down or left/right arrow keys. Defaults to 'vertical'.
orientation: Var[LiteralMenuOrientation]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu root component."""
props["data-slot"] = "menu"
ret... |
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class MenuPortal(MenuBaseComponent):
"""A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>."""
tag = "Menu.Portal"
# A parent e... | props["data-slot"] = "menu-trigger" |
ation]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu root component."""
props["data-slot"] = "menu"
return super().create(*children, **props)
class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element... |
class MenuPositioner(MenuBaseComponent):
"""Positions the menu popup against the trigger. Renders a <div> element."""
tag = "Menu.Positioner"
# Determines how to handle collisions when positioning the popup.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
# How to align the popup re... | class MenuPortal(MenuBaseComponent):
"""A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>."""
tag = "Menu.Portal"
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted... |
eturn super().create(*children, **props)
class MenuTrigger(MenuBaseComponent):
"""A button that opens the menu. Renders a <button> element."""
tag = "Menu.Trigger"
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not... |
# A parent element to render the portal element into.
container: Var[str]
# Whether to keep the portal mounted in the DOM while the popup is hidden. Defaults to False.
keep_mounted: Var[bool]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu port... | tag = "Menu.Portal" |
it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to True.
native_button: Var[bool]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]
@classmethod
def... |
class MenuPositioner(MenuBaseComponent):
"""Positions the menu popup against the trigger. Renders a <div> element."""
tag = "Menu.Positioner"
# Determines how to handle collisions when positioning the popup.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
# How to align the popup re... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu portal component."""
props["data-slot"] = "menu-portal"
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props) |
native_button: Var[bool]
# 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 menu trigger component."""
pr... |
cls.set_class_name(ClassNames.PORTAL, props)
return super().create(*children, **props)
class MenuPositioner(MenuBaseComponent):
"""Positions the menu popup against the trigger. Renders a <div> element."""
tag = "Menu.Positioner"
# Determines how to handle collisions when positioning the... | props["data-slot"] = "menu-portal" |
e render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu trigger component."""
props["data-slot"] = "menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
... |
class MenuPopup(MenuBaseComponent):
"""A container for the menu items. Renders a <div> element."""
tag = "Menu.Popup"
# Determines the element to focus when the menu is closed. By default, focus returns to the trigger.
final_focus: Var[str]
# The render prop
render_: Var[Component]
@c... | class MenuPositioner(MenuBaseComponent):
"""Positions the menu popup against the trigger. Renders a <div> element."""
tag = "Menu.Positioner"
# Determines how to handle collisions when positioning the popup.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
# How to align the popup relat... |
"""Create the menu trigger component."""
props["data-slot"] = "menu-trigger"
cls.set_class_name(ClassNames.TRIGGER, props)
return super().create(*children, **props)
class MenuPortal(MenuBaseComponent):
"""A portal element that moves the popup to a different part of the DOM. By default, t... |
# Determines how to handle collisions when positioning the popup.
collision_avoidance: Var[bool | LiteralCollisionAvoidance]
# How to align the popup relative to the specified side. Defaults to "center".
align: Var[LiteralAlign]
# Additional offset along the alignment axis in pixels. Defaults to... | tag = "Menu.Positioner" |
aults to 0.
side_offset: Var[int]
# Minimum distance to maintain between the arrow and the edges of the popup. Use it to prevent the arrow element from hanging out of the rounded corners of a popup. Defaults to 5.
arrow_padding: Var[int]
# Additional space to maintain from the edge of the collision bo... |
class MenuPopup(MenuBaseComponent):
"""A container for the menu items. Renders a <div> element."""
tag = "Menu.Popup"
# Determines the element to focus when the menu is closed. By default, focus returns to the trigger.
final_focus: Var[str]
# The render prop
render_: Var[Component]
@c... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu positioner component."""
props["data-slot"] = "menu-positioner"
props.setdefault("side_offset", 4)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props) |
up. Use it to prevent the arrow element from hanging out of the rounded corners of a popup. 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 ... |
props.setdefault("side_offset", 4)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class MenuPopup(MenuBaseComponent):
"""A container for the menu items. Renders a <div> element."""
tag = "Menu.Popup"
# Determines the element to focus w... | props["data-slot"] = "menu-positioner" |
limits the area that the popup is confined to. Defaults to the "clipping-ancestors".
collision_boundary: Var[str]
# Whether to maintain the popup in the viewport after the anchor element was scrolled out of view. Defaults to False.
sticky: Var[bool]
# Whether the popup tracks any layout shift of its p... |
# Determines the element to focus when the menu is closed. By default, focus returns to the trigger.
final_focus: Var[str]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu popup component."""
pro... | tag = "Menu.Popup" |
faults to False.
sticky: Var[bool]
# Whether the popup tracks any layout shift of its positioning anchor. Defaults to True.
track_anchor: Var[bool]
# Determines which CSS position property to use. Defaults to "absolute".
position_method: Var[LiteralPositionMethod]
# The render prop.
rende... |
class MenuArrow(MenuBaseComponent):
"""Displays an element positioned against the menu anchor. Renders a <div> element."""
tag = "Menu.Arrow"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu arrow comp... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu popup component."""
props["data-slot"] = "menu-popup"
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props) |
or. Defaults to True.
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:
"""Cre... |
cls.set_class_name(ClassNames.POPUP, props)
return super().create(*children, **props)
class MenuArrow(MenuBaseComponent):
"""Displays an element positioned against the menu anchor. Renders a <div> element."""
tag = "Menu.Arrow"
# The render prop
render_: Var[Component]
@classme... | props["data-slot"] = "menu-popup" |
on_method: Var[LiteralPositionMethod]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu positioner component."""
props["data-slot"] = "menu-positioner"
props.setdefault("side_offset", 4)
cl... |
class MenuItem(MenuBaseComponent):
"""An individual interactive item in the menu. Renders a <div> element."""
tag = "Menu.Item"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Defa... | class MenuArrow(MenuBaseComponent):
"""Displays an element positioned against the menu anchor. Renders a <div> element."""
tag = "Menu.Arrow"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu arrow compone... |
ldren, **props) -> BaseUIComponent:
"""Create the menu positioner component."""
props["data-slot"] = "menu-positioner"
props.setdefault("side_offset", 4)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class MenuPopup(MenuBaseComponent... |
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu arrow component."""
props["data-slot"] = "menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)... | tag = "Menu.Arrow" |
props["data-slot"] = "menu-positioner"
props.setdefault("side_offset", 4)
cls.set_class_name(ClassNames.POSITIONER, props)
return super().create(*children, **props)
class MenuPopup(MenuBaseComponent):
"""A container for the menu items. Renders a <div> element."""
tag = "Menu.Popup... |
class MenuItem(MenuBaseComponent):
"""An individual interactive item in the menu. Renders a <div> element."""
tag = "Menu.Item"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Defa... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu arrow component."""
props["data-slot"] = "menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props) |
for the menu items. Renders a <div> element."""
tag = "Menu.Popup"
# Determines the element to focus when the menu is closed. By default, focus returns to the trigger.
final_focus: Var[str]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> Bas... |
class MenuSubMenuRoot(MenuBaseComponent):
"""Groups all parts of a submenu. Doesn't render its own HTML element."""
tag = "Menu.SubMenuRoot"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the me... | class MenuItem(MenuBaseComponent):
"""An individual interactive item in the menu. Renders a <div> element."""
tag = "Menu.Item"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Default... |
e menu is closed. By default, focus returns to the trigger.
final_focus: Var[str]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu popup component."""
props["data-slot"] = "menu-popup"
cls.set_... |
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Defaults to True.
close_on_click: Var[bool]
# Whether the component renders a native <button> element when replacing it via the render... | tag = "Menu.Item" |
reate(cls, *children, **props) -> BaseUIComponent:
"""Create the menu arrow component."""
props["data-slot"] = "menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class MenuItem(MenuBaseComponent):
"""An individual interactive item in ... |
class MenuSubMenuRoot(MenuBaseComponent):
"""Groups all parts of a submenu. Doesn't render its own HTML element."""
tag = "Menu.SubMenuRoot"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the me... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu item component."""
props["data-slot"] = "menu-item"
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props) |
s["data-slot"] = "menu-arrow"
cls.set_class_name(ClassNames.ARROW, props)
return super().create(*children, **props)
class MenuItem(MenuBaseComponent):
"""An individual interactive item in the menu. Renders a <div> element."""
tag = "Menu.Item"
# Overrides the text label to use when the i... |
cls.set_class_name(ClassNames.ITEM, props)
return super().create(*children, **props)
class MenuSubMenuRoot(MenuBaseComponent):
"""Groups all parts of a submenu. Doesn't render its own HTML element."""
tag = "Menu.SubMenuRoot"
# Whether the menu is initially open. To render a controlled ... | props["data-slot"] = "menu-item" |
ass MenuItem(MenuBaseComponent):
"""An individual interactive item in the menu. Renders a <div> element."""
tag = "Menu.Item"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Defaults ... |
class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing ... | class MenuSubMenuRoot(MenuBaseComponent):
"""Groups all parts of a submenu. Doesn't render its own HTML element."""
tag = "Menu.SubMenuRoot"
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu ... |
enu.Item"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether to close the menu when the item is clicked. Defaults to True.
close_on_click: Var[bool]
# Whether the component renders a native <button> element when replacing it via t... |
# Whether the menu is initially open. To render a controlled menu, use the open prop instead. Defaults to False.
default_open: Var[bool]
# Whether the menu is currently open.
open: Var[bool]
# Event handler called when the menu is opened or closed.
on_open_change: EventHandler[passthrough_ev... | tag = "Menu.SubMenuRoot" |
hrough_event_spec(bool)]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# Whether the menu should also open when the trigger is hovered. Defaults to True.
open_on_hover: Var[bool]
# How long to wait before the menu may be opened on hover. Specified ... |
class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing ... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu root component."""
props["data-slot"] = "menu-submenu-root"
cls.set_class_name(ClassNames.ITEM_TEXT, props)
return super().create(*children, **props) |
Var[bool]
# Whether the menu should also open when the trigger is hovered. Defaults to True.
open_on_hover: Var[bool]
# How long to wait before the menu may be opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 100.
delay: Var[int]
# How long to wait before ... |
cls.set_class_name(ClassNames.ITEM_TEXT, props)
return super().create(*children, **props)
class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navi... | props["data-slot"] = "menu-submenu-root" |
it before the menu may be opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 100.
delay: Var[int]
# How long to wait before closing the menu that was opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 0.
close_delay: Var[int]
... |
class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group comp... | class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing it ... |
er prop. Defaults to 100.
delay: Var[int]
# How long to wait before closing the menu that was opened on hover. Specified in milliseconds. Requires the open_on_hover prop. Defaults to 0.
close_delay: Var[int]
# Whether to loop keyboard focus back to the first item when the end of the list is reached wh... |
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to False.
native_but... | tag = "Menu.SubMenuTrigger" |
whether roving focus uses up/down or left/right arrow keys. Defaults to 'vertical'.
orientation: Var[LiteralMenuOrientation]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu root component."""
... |
class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group comp... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu trigger component."""
props["data-slot"] = "menu-submenu-trigger"
cls.set_class_name(ClassNames.SUBMENU_TRIGGER, props)
return super().create(*children, **props) |
ntation]
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu root component."""
props["data-slot"] = "menu-submenu-root"
cls.set_class_name(ClassNames.ITEM_TEXT, props)
return super()... |
cls.set_class_name(ClassNames.SUBMENU_TRIGGER, props)
return super().create(*children, **props)
class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
... | props["data-slot"] = "menu-submenu-trigger" |
he menu submenu root component."""
props["data-slot"] = "menu-submenu-root"
cls.set_class_name(ClassNames.ITEM_TEXT, props)
return super().create(*children, **props)
class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
#... |
class MenuGroupLabel(MenuBaseComponent):
"""An accessible label that is automatically associated with its parent group. Renders a <div> element."""
tag = "Menu.GroupLabel"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
... | class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group compone... |
props)
return super().create(*children, **props)
class MenuSubMenuTrigger(MenuBaseComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the co... |
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group component."""
props["data-slot"] = "menu-group"
cls.set_class_name(ClassNames.GROUP, props)
return super().create(*children, **props)... | tag = "Menu.Group" |
eComponent):
"""A menu item that opens a submenu."""
tag = "Menu.SubMenuTrigger"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing it via the render prop. Set to fals... |
class MenuGroupLabel(MenuBaseComponent):
"""An accessible label that is automatically associated with its parent group. Renders a <div> element."""
tag = "Menu.GroupLabel"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group component."""
props["data-slot"] = "menu-group"
cls.set_class_name(ClassNames.GROUP, props)
return super().create(*children, **props) |
text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to False.
native_button: Var[bool]
# ... |
cls.set_class_name(ClassNames.GROUP, props)
return super().create(*children, **props)
class MenuGroupLabel(MenuBaseComponent):
"""An accessible label that is automatically associated with its parent group. Renders a <div> element."""
tag = "Menu.GroupLabel"
# The render prop
render_... | props["data-slot"] = "menu-group" |
ive <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to False.
native_button: Var[bool]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Creat... |
class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially selected. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
... | class MenuGroupLabel(MenuBaseComponent):
"""An accessible label that is automatically associated with its parent group. Renders a <div> element."""
tag = "Menu.GroupLabel"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
""... |
button: Var[bool]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu trigger component."""
props["data-slot"] = "menu-submenu-trigger"
cls.set_class_name(ClassNames.SUBMENU_TRIGGER, props)
... |
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group label component."""
props["data-slot"] = "menu-group-label"
cls.set_class_name(ClassNames.GROUP_LABEL, props)
return super().create(*... | tag = "Menu.GroupLabel" |
eate(cls, *children, **props) -> BaseUIComponent:
"""Create the menu submenu trigger component."""
props["data-slot"] = "menu-submenu-trigger"
cls.set_class_name(ClassNames.SUBMENU_TRIGGER, props)
return super().create(*children, **props)
class MenuGroup(MenuBaseComponent):
"""Grou... |
class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially selected. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group label component."""
props["data-slot"] = "menu-group-label"
cls.set_class_name(ClassNames.GROUP_LABEL, props)
return super().create(*children, **props) |
ops["data-slot"] = "menu-submenu-trigger"
cls.set_class_name(ClassNames.SUBMENU_TRIGGER, props)
return super().create(*children, **props)
class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The re... |
cls.set_class_name(ClassNames.GROUP_LABEL, props)
return super().create(*children, **props)
class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially sel... | props["data-slot"] = "menu-group-label" |
ps)
class MenuGroup(MenuBaseComponent):
"""Groups related menu items with the corresponding label. Renders a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group c... |
class MenuRadioItem(MenuBaseComponent):
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This... | class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially selected. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
#... |
ers a <div> element."""
tag = "Menu.Group"
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu group component."""
props["data-slot"] = "menu-group"
cls.set_class_name(ClassNames.GROUP, props)
... |
# The uncontrolled value of the radio item that should be initially selected. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
# The controlled value of the radio item that should be currently selected. To render an uncontrolled radio group, use the defaultVal... | tag = "Menu.RadioGroup" |
te the menu group label component."""
props["data-slot"] = "menu-group-label"
cls.set_class_name(ClassNames.GROUP_LABEL, props)
return super().create(*children, **props)
class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.Rad... |
class MenuRadioItem(MenuBaseComponent):
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu radio group component."""
props["data-slot"] = "menu-radio-group"
cls.set_class_name(ClassNames.RADIO_GROUP, props)
return super().create(*children, **props) |
sNames.GROUP_LABEL, props)
return super().create(*children, **props)
class MenuRadioGroup(MenuBaseComponent):
"""Groups related radio items. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially selected. To render a controlled ra... |
cls.set_class_name(ClassNames.RADIO_GROUP, props)
return super().create(*children, **props)
class MenuRadioItem(MenuBaseComponent):
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when t... | props["data-slot"] = "menu-radio-group" |
ems. Renders a <div> element."""
tag = "Menu.RadioGroup"
# The uncontrolled value of the radio item that should be initially selected. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
# The controlled value of the radio item that should be currently select... |
class MenuRadioItemIndicator(MenuBaseComponent):
"""Indicates whether the radio item is selected. Renders a <div> element."""
tag = "Menu.RadioItemIndicator"
# Whether to keep the HTML element in the DOM when the radio item is inactive. Defaults to False.
keep_mounted: Var[bool]
# The render p... | class MenuRadioItem(MenuBaseComponent):
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This is... |
ed. To render a controlled radio group, use the value prop instead.
default_value: Var[str | int]
# The controlled value of the radio item that should be currently selected. To render an uncontrolled radio group, use the defaultValue prop instead.
value: Var[str | int]
# Function called when the selec... |
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This is the value that will be set in the MenuRadioGroup when the item is selected.
value: Var[str | int]
# Whether to close the menu when the item is clicked. D... | tag = "Menu.RadioItem" |
s.RADIO_GROUP, props)
return super().create(*children, **props)
class MenuRadioItem(MenuBaseComponent):
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when the item is matched during keyboard te... |
class MenuRadioItemIndicator(MenuBaseComponent):
"""Indicates whether the radio item is selected. Renders a <div> element."""
tag = "Menu.RadioItemIndicator"
# Whether to keep the HTML element in the DOM when the radio item is inactive. Defaults to False.
keep_mounted: Var[bool]
# The render p... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu radio item component."""
props["data-slot"] = "menu-radio-item"
cls.set_class_name(ClassNames.RADIO_ITEM, props)
return super().create(*children, **props) |
"""A menu item that works like a radio button in a given group. Renders a <div> element."""
tag = "Menu.RadioItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This is the value that will be set in the MenuRad... |
cls.set_class_name(ClassNames.RADIO_ITEM, props)
return super().create(*children, **props)
class MenuRadioItemIndicator(MenuBaseComponent):
"""Indicates whether the radio item is selected. Renders a <div> element."""
tag = "Menu.RadioItemIndicator"
# Whether to keep the HTML element in ... | props["data-slot"] = "menu-radio-item" |
label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Value of the radio item. This is the value that will be set in the MenuRadioGroup when the item is selected.
value: Var[str | int]
# Whether to close the menu when the item is clicked. Defaults to False.
close... |
class MenuCheckboxItem(MenuBaseComponent):
"""A menu item that toggles a setting on or off. Renders a <div> element."""
tag = "Menu.CheckboxItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the checkbox item is initially... | class MenuRadioItemIndicator(MenuBaseComponent):
"""Indicates whether the radio item is selected. Renders a <div> element."""
tag = "Menu.RadioItemIndicator"
# Whether to keep the HTML element in the DOM when the radio item is inactive. Defaults to False.
keep_mounted: Var[bool]
# The render prop... |
value that will be set in the MenuRadioGroup when the item is selected.
value: Var[str | int]
# Whether to close the menu when the item is clicked. Defaults to False.
close_on_click: Var[bool]
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false... |
# Whether to keep the HTML element in the DOM when the radio item is inactive. Defaults to False.
keep_mounted: Var[bool]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu radio item indicator component."... | tag = "Menu.RadioItemIndicator" |
enders a native <button> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to False.
native_button: Var[bool]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
r... |
class MenuCheckboxItem(MenuBaseComponent):
"""A menu item that toggles a setting on or off. Renders a <div> element."""
tag = "Menu.CheckboxItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the checkbox item is initially... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu radio item indicator component."""
props["data-slot"] = "menu-radio-item-indicator"
cls.set_class_name(ClassNames.RADIO_ITEM_INDICATOR, props)
return super().create(*children, **props) |
e.g. <div>). Defaults to False.
native_button: Var[bool]
# 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 men... |
cls.set_class_name(ClassNames.RADIO_ITEM_INDICATOR, props)
return super().create(*children, **props)
class MenuCheckboxItem(MenuBaseComponent):
"""A menu item that toggles a setting on or off. Renders a <div> element."""
tag = "Menu.CheckboxItem"
# Overrides the text label to use when t... | props["data-slot"] = "menu-radio-item-indicator" |
# The render prop.
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu radio item component."""
props["data-slot"] = "menu-radio-item"
cls.set_class_name(ClassNames.RADIO_ITEM, props)
return super().create(*childr... |
class MenuCheckboxItemIndicator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
tag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
#... | class MenuCheckboxItem(MenuBaseComponent):
"""A menu item that toggles a setting on or off. Renders a <div> element."""
tag = "Menu.CheckboxItem"
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the checkbox item is initially ti... |
"""Create the menu radio item component."""
props["data-slot"] = "menu-radio-item"
cls.set_class_name(ClassNames.RADIO_ITEM, props)
return super().create(*children, **props)
class MenuRadioItemIndicator(MenuBaseComponent):
"""Indicates whether the radio item is selected. Renders a <d... |
# Overrides the text label to use when the item is matched during keyboard text navigation.
label: Var[str]
# Whether the checkbox item is initially ticked. To render a controlled checkbox item, use the checked prop instead. Defaults to False.
default_checked: Var[bool]
# Whether the checkbox it... | tag = "Menu.CheckboxItem" |
navigation.
label: Var[str]
# Whether the checkbox item is initially ticked. To render a controlled checkbox item, use the checked prop instead. Defaults to False.
default_checked: Var[bool]
# Whether the checkbox item is ticked. To render an uncontrolled checkbox item, use the default_checked prop i... |
class MenuCheckboxItemIndicator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
tag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
#... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu checkbox item component."""
props["data-slot"] = "menu-checkbox-item"
cls.set_class_name(ClassNames.CHECKBOX_ITEM, props)
return super().create(*children, **props) |
item, use the checked prop instead. Defaults to False.
default_checked: Var[bool]
# Whether the checkbox item is ticked. To render an uncontrolled checkbox item, use the default_checked prop instead.
checked: Var[bool]
# Event handler called when the checkbox item is ticked or unticked.
on_checked... |
cls.set_class_name(ClassNames.CHECKBOX_ITEM, props)
return super().create(*children, **props)
class MenuCheckboxItemIndicator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
tag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML e... | props["data-slot"] = "menu-checkbox-item" |
d checkbox item, use the default_checked prop instead.
checked: Var[bool]
# Event handler called when the checkbox item is ticked or unticked.
on_checked_change: EventHandler[passthrough_event_spec(bool, dict)]
# Whether to close the menu when the item is clicked. Defaults to False.
close_on_click... |
class MenuSeparator(MenuBaseComponent):
"""A separator element accessible to screen readers. Renders a <div> element."""
tag = "Menu.Separator"
# The orientation of the separator. Defaults to 'horizontal'.
orientation: Var[LiteralMenuOrientation]
# The render prop
render_: Var[Component]
... | class MenuCheckboxItemIndicator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
tag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
# Th... |
or unticked.
on_checked_change: EventHandler[passthrough_event_spec(bool, dict)]
# Whether to close the menu when the item is clicked. Defaults to False.
close_on_click: Var[bool]
# Whether the component renders a native <button> element when replacing it via the render prop. Set to false if the rende... |
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu checkbox item indicator co... | tag = "Menu.CheckboxItemIndicator" |
n> element when replacing it via the render prop. Set to false if the rendered element is not a button (e.g. <div>). Defaults to False.
native_button: Var[bool]
# Whether the component should ignore user interaction. Defaults to False.
disabled: Var[bool]
# The render prop.
render_: Var[Component]... |
class MenuSeparator(MenuBaseComponent):
"""A separator element accessible to screen readers. Renders a <div> element."""
tag = "Menu.Separator"
# The orientation of the separator. Defaults to 'horizontal'.
orientation: Var[LiteralMenuOrientation]
# The render prop
render_: Var[Component]
... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu checkbox item indicator component."""
props["data-slot"] = "menu-checkbox-item-indicator"
cls.set_class_name(ClassNames.CHECKBOX_ITEM_INDICATOR, props)
return super().create(*children, **props) |
False.
native_button: Var[bool]
# 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 menu checkbox item component... |
cls.set_class_name(ClassNames.CHECKBOX_ITEM_INDICATOR, props)
return super().create(*children, **props)
class MenuSeparator(MenuBaseComponent):
"""A separator element accessible to screen readers. Renders a <div> element."""
tag = "Menu.Separator"
# The orientation of the separator. Def... | props["data-slot"] = "menu-checkbox-item-indicator" |
_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu checkbox item component."""
props["data-slot"] = "menu-checkbox-item"
cls.set_class_name(ClassNames.CHECKBOX_ITEM, props)
return super().create(*children, **props)
class M... |
class HighLevelMenu(MenuRoot):
"""High level wrapper for the Menu component."""
# The trigger component to use for the menu
trigger: Var[Component | None]
# The list of items to display in the menu dropdown - can be strings or tuples of (label, on_click_handler)
items: Var[list[str | tuple[str,... | class MenuSeparator(MenuBaseComponent):
"""A separator element accessible to screen readers. Renders a <div> element."""
tag = "Menu.Separator"
# The orientation of the separator. Defaults to 'horizontal'.
orientation: Var[LiteralMenuOrientation]
# The render prop
render_: Var[Component]
... |
x item component."""
props["data-slot"] = "menu-checkbox-item"
cls.set_class_name(ClassNames.CHECKBOX_ITEM, props)
return super().create(*children, **props)
class MenuCheckboxItemIndicator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
... |
# The orientation of the separator. Defaults to 'horizontal'.
orientation: Var[LiteralMenuOrientation]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu separator component."""
props["data-slot"] ... | tag = "Menu.Separator" |
icator(MenuBaseComponent):
"""Indicates whether the checkbox item is ticked. Renders a <div> element."""
tag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
# The render prop
render_... |
class HighLevelMenu(MenuRoot):
"""High level wrapper for the Menu component."""
# The trigger component to use for the menu
trigger: Var[Component | None]
# The list of items to display in the menu dropdown - can be strings or tuples of (label, on_click_handler)
items: Var[list[str | tuple[str,... | def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu separator component."""
props["data-slot"] = "menu-separator"
cls.set_class_name(ClassNames.SEPARATOR, props)
return super().create(*children, **props) |
ag = "Menu.CheckboxItemIndicator"
# Whether to keep the HTML element in the DOM when the checkbox item is not checked. Defaults to False.
keep_mounted: Var[bool]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create th... |
cls.set_class_name(ClassNames.SEPARATOR, props)
return super().create(*children, **props)
class HighLevelMenu(MenuRoot):
"""High level wrapper for the Menu component."""
# The trigger component to use for the menu
trigger: Var[Component | None]
# The list of items to display in the ... | props["data-slot"] = "menu-separator" |
entation]
# The render prop
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu separator component."""
props["data-slot"] = "menu-separator"
cls.set_class_name(ClassNames.SEPARATOR, props)
return super().creat... |
_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_avoidanc... | _item_props = {"close_on_click"} |
render_: Var[Component]
@classmethod
def create(cls, *children, **props) -> BaseUIComponent:
"""Create the menu separator component."""
props["data-slot"] = "menu-separator"
cls.set_class_name(ClassNames.SEPARATOR, props)
return super().create(*children, **props)
class HighLev... |
_positioner_props = {
"align",
"align_offset",
"side",
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
}
_portal_props = {"container"}
@classmethod
... | _trigger_props = {"placeholder", "size", "close_on_click"} |
children, **props) -> BaseUIComponent:
"""Create the menu separator component."""
props["data-slot"] = "menu-separator"
cls.set_class_name(ClassNames.SEPARATOR, props)
return super().create(*children, **props)
class HighLevelMenu(MenuRoot):
"""High level wrapper for the Menu compon... |
_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.
Retur... | _positioner_props = {
"align",
"align_offset",
"side",
"arrow_padding",
"collision_padding",
"sticky",
"position_method",
"track_anchor",
"side_offset",
"collision_avoidance",
} |
nuRoot):
"""High level wrapper for the Menu component."""
# The trigger component to use for the menu
trigger: Var[Component | None]
# The list of items to display in the menu dropdown - can be strings or tuples of (label, on_click_handler)
items: Var[list[str | tuple[str, EventHandler]]]
# T... |
@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... | _portal_props = {"container"} |
ze of the menu. Defaults to "md".
size: Var[LiteralMenuSize]
# Whether to close the menu when the item is clicked. Defaults to True.
close_on_click: Var[bool]
# Props for different component parts
_item_props = {"close_on_click"}
_trigger_props = {"placeholder", "size", "close_on_click"}
_... |
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"... | item_props = {k: props.pop(k) for k in cls._item_props & props.keys()} |
to close the menu when the item is clicked. Defaults to True.
close_on_click: Var[bool]
# Props for different component parts
_item_props = {"close_on_click"}
_trigger_props = {"placeholder", "size", "close_on_click"}
_positioner_props = {
"align",
"align_offset",
"side",
... |
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... | trigger_props = {k: props.pop(k) for k in cls._trigger_props & props.keys()} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.