instruction
stringlengths
0
1k
input
stringlengths
1
1k
output
stringlengths
10
6.51k
t): """The viewport of the scroll area.""" tag = "ScrollArea.Viewport" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area viewport component.""" props["data-slot"] = "scroll-area-viewport" ...
# Orientation of the scrollbar orientation: Var[LiteralOrientation] = Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[bool] = Var.create(False) # Render prop render_: Var[Component] @classmethod def create(cls...
tag = "ScrollArea.Scrollbar"
aseComponent): """A container for the content of the scroll area.""" tag = "ScrollArea.Content" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area content component.""" props["data-slot"] = "scro...
orientation = props.get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) ...
props["data-slot"] = "scroll-area-scrollbar"
the scroll area.""" tag = "ScrollArea.Content" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area content component.""" props["data-slot"] = "scroll-area-content" cls.set_class_name(ClassName...
scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollbar_classes, props) ret...
orientation = props.get("orientation", "vertical")
ender prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area content component.""" props["data-slot"] = "scroll-area-content" cls.set_class_name(ClassNames.CONTENT, props) return super().create(*children, *...
cls.set_class_name(scrollbar_classes, props) return super().create(*children, **props) class ScrollAreaThumb(ScrollAreaBaseComponent): """The thumb of the scrollbar.""" tag = "ScrollArea.Thumb" # Render prop render_: Var[Component] @classmethod def create(cls, *children, *...
scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), )
lbar(ScrollAreaBaseComponent): """The scrollbar of the scroll area.""" tag = "ScrollArea.Scrollbar" # Orientation of the scrollbar orientation: Var[LiteralOrientation] = Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[b...
class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: ...
class ScrollAreaThumb(ScrollAreaBaseComponent): """The thumb of the scrollbar.""" tag = "ScrollArea.Thumb" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area thumb component.""" props["data-slot"...
llArea.Scrollbar" # Orientation of the scrollbar orientation: Var[LiteralOrientation] = Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[bool] = Var.create(False) # Render prop render_: Var[Component] @classmethod ...
# Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area thumb component.""" props["data-slot"] = "scroll-area-thumb" cls.set_class_name(ClassNames.THUMB, props) return super().create(*children...
tag = "ScrollArea.Thumb"
= Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[bool] = Var.create(False) # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area s...
class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: ...
def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area thumb component.""" props["data-slot"] = "scroll-area-thumb" cls.set_class_name(ClassNames.THUMB, props) return super().create(*children, **props)
ep_mounted: Var[bool] = Var.create(False) # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area scrollbar component.""" props["data-slot"] = "scroll-area-scrollbar" orientation = props.get("orientati...
cls.set_class_name(ClassNames.THUMB, props) return super().create(*children, **props) class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner" # Render prop rende...
props["data-slot"] = "scroll-area-thumb"
) -> BaseUIComponent: """Create the scroll area scrollbar component.""" props["data-slot"] = "scroll-area-scrollbar" orientation = props.get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertic...
class HighLevelScrollArea(ScrollAreaRoot): """High level wrapper for the Scroll Area component.""" # Orientation of the scroll area orientation: Var[LiteralOrientation] = Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[bo...
class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner" # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: ...
get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollb...
# Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area corner component.""" props["data-slot"] = "scroll-area-corner" cls.set_class_name(ClassNames.CORNER, props) return super().create(*child...
tag = "ScrollArea.Corner"
R_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollbar_classes, props) return super().create(*children, **props) class ScrollAreaThumb(Sc...
class HighLevelScrollArea(ScrollAreaRoot): """High level wrapper for the Scroll Area component.""" # Orientation of the scroll area orientation: Var[LiteralOrientation] = Var.create("vertical") # Whether to keep the HTML element in the DOM when the viewport isn't scrollable keep_mounted: Var[bo...
def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area corner component.""" props["data-slot"] = "scroll-area-corner" cls.set_class_name(ClassNames.CORNER, props) return super().create(*children, **props)
ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollbar_classes, props) return super().create(*children, **props) class ScrollAreaThumb(ScrollAreaBaseComponent): """The thumb of the scrollbar.""" tag = "ScrollArea.Thumb" # Render prop rend...
cls.set_class_name(ClassNames.CORNER, props) return super().create(*children, **props) class HighLevelScrollArea(ScrollAreaRoot): """High level wrapper for the Scroll Area component.""" # Orientation of the scroll area orientation: Var[LiteralOrientation] = Var.create("vertical") # ...
props["data-slot"] = "scroll-area-corner"
t_class_name(ClassNames.THUMB, props) return super().create(*children, **props) class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner" # Render prop render_: Var[Compone...
@classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create a high level scroll area component. Args: *children: The content to be scrollable. **props: Additional properties to apply to the scroll area component. Returns: The scr...
_scrollbar_props = {"orientation", "keep_mounted"}
"" props["data-slot"] = "scroll-area-corner" cls.set_class_name(ClassNames.CORNER, props) return super().create(*children, **props) class HighLevelScrollArea(ScrollAreaRoot): """High level wrapper for the Scroll Area component.""" # Orientation of the scroll area orientation: Var[...
return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), ...
scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()}
rt isn't scrollable keep_mounted: Var[bool] = Var.create(False) # Props for different component parts _scrollbar_props = {"orientation", "keep_mounted"} @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create a high level scroll area component. Args: ...
scroll_area = ScrollArea()
class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create) viewport = staticmethod(ScrollAreaViewport.create) content = staticmethod(ScrollAreaContent.create) scrollbar = staticmethod(ScrollAreaScrollbar.create) thumb = staticmet...
ent component parts _scrollbar_props = {"orientation", "keep_mounted"} @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create a high level scroll area component. Args: *children: The content to be scrollable. **props: Additional properties to...
viewport = staticmethod(ScrollAreaViewport.create) content = staticmethod(ScrollAreaContent.create) scrollbar = staticmethod(ScrollAreaScrollbar.create) thumb = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmeth...
root = staticmethod(ScrollAreaRoot.create)
ientation", "keep_mounted"} @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create a high level scroll area component. Args: *children: The content to be scrollable. **props: Additional properties to apply to the scroll area component. R...
content = staticmethod(ScrollAreaContent.create) scrollbar = staticmethod(ScrollAreaScrollbar.create) thumb = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollAr...
viewport = staticmethod(ScrollAreaViewport.create)
reate(cls, *children, **props) -> BaseUIComponent: """Create a high level scroll area component. Args: *children: The content to be scrollable. **props: Additional properties to apply to the scroll area component. Returns: The scroll area component. ...
scrollbar = staticmethod(ScrollAreaScrollbar.create) thumb = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
content = staticmethod(ScrollAreaContent.create)
"""Create a high level scroll area component. Args: *children: The content to be scrollable. **props: Additional properties to apply to the scroll area component. Returns: The scroll area component. """ # Extract props for different parts ...
thumb = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
scrollbar = staticmethod(ScrollAreaScrollbar.create)
Args: *children: The content to be scrollable. **props: Additional properties to apply to the scroll area component. Returns: The scroll area component. """ # Extract props for different parts scrollbar_props = {k: props.pop(k) for k in cls._scrol...
corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
thumb = staticmethod(ScrollAreaThumb.create)
e scrollable. **props: Additional properties to apply to the scroll area component. Returns: The scroll area component. """ # Extract props for different parts scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()} return Scroll...
class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
corner = staticmethod(ScrollAreaCorner.create)
rties to apply to the scroll area component. Returns: The scroll area component. """ # Extract props for different parts scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.cre...
__call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
class_names = ClassNames
area component. Returns: The scroll area component. """ # Extract props for different parts scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAr...
scroll_area = ScrollArea()
__call__ = staticmethod(HighLevelScrollArea.create)
ll area component. """ # Extract props for different parts scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ...
scroll_area = ScrollArea()
"""Custom select component."""
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 button from r...
from typing import Any, Literal
"""Custom select component.""" from typing import Any, Literal
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, BaseUIComponent from r...
from reflex.components.component import Component, ComponentNamespace
"""Custom select component.""" from typing import Any, 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.button import button from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from r...
from reflex.components.core.foreach import foreach
"""Custom select component.""" from typing import Any, Literal from reflex.components.component import Component, ComponentNamespace from reflex.components.core.foreach import foreach
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, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from refl...
from reflex.event import EventHandler, passthrough_event_spec
"""Custom select component.""" from typing import Any, 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.vars.base import Var from reflex_ui.components.base.button import button from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn LiteralSelec...
from reflex.utils.imports import ImportVar
"""Custom select component.""" from typing import Any, 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_ui.components.base.button import button from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn LiteralSelectSize = Literal["xs", "sm", "md",...
from reflex.vars.base import Var
"""Custom select component.""" from typing import Any, 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 ...
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center"...
from reflex_ui.components.base.button import button
"""Custom select component.""" from typing import Any, 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 ...
from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", ...
from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent
"""Custom select component.""" from typing import Any, 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 ...
from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["...
from reflex_ui.components.icons.hugeicon import hi
"""Custom select component.""" from typing import Any, 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 ...
from reflex_ui.utils.twmerge import cn LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizonta...
from reflex_ui.components.icons.others import select_arrow
"""Custom select component.""" from typing import Any, 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 ...
LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: ...
from reflex_ui.utils.twmerge import cn
"""Custom select component.""" from typing import Any, 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 ...
LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: """Class names for select components.""" TRIGGER = "f...
LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"]
"""Custom select component.""" from typing import Any, 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 ...
LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: """Class names for select components.""" TRIGGER = "flex min-w-48 items-center justify-between gap-3 s...
LiteralAlign = Literal["start", "center", "end"]
"""Custom select component.""" from typing import Any, 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 ...
LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: """Class names for select 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-visib...
LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"]
"""Custom select component.""" from typing import Any, 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 ...
LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: """Class names for select 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/tr...
LiteralPosition = Literal["absolute", "fixed"]
"""Custom select component.""" from typing import Any, 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 ...
class ClassNames: """Class names for select 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" VALUE = "flex-1 text-left" ICON = "flex ...
LiteralOrientation = Literal["horizontal", "vertical"]
"""Custom select component.""" from typing import Any, 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 ...
class SelectBaseComponent(BaseUIComponent): """Base component for select components.""" library = f"{PACKAGE_NAME}/select" @property def import_var(self): """Return the import variable for the select component.""" return ImportVar(tag="Select", package_path="", install=False) clas...
class ClassNames: """Class names for select 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" VALUE = "flex-1 text-left" ICON = "flex siz...
"""Custom select component.""" from typing import Any, 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 ...
VALUE = "flex-1 text-left" 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]:...
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"
ch 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, BaseUIComponent from reflex_ui.components.icons.hugeicon...
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]:...
VALUE = "flex-1 text-left"
vent 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, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.compo...
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"
rtVar from reflex.vars.base import Var from reflex_ui.components.base.button import button from reflex_ui.components.base_ui import PACKAGE_NAME, BaseUIComponent from reflex_ui.components.icons.hugeicon import hi from reflex_ui.components.icons.others import select_arrow from reflex_ui.utils.twmerge import cn Literal...
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)] data-[selected]:text-secondary-12 text-secondary-11 cursor-pointer placeholder:text-secondary-9 data-[selected]:font-medium outline-none dat...
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...
eral["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"] LiteralPosition = Literal["absolute", "fixed"] LiteralOrientation = Literal["horizontal", "vertical"] class ClassNames: """Class names for select components.""" TRIGGER = "flex min-w-48 items-...
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-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] data-[selected]:text-secondary-12 text-secondary-11 cursor-pointer placeholder:text-secondary-9 data-[selected]:font-medium outline-none data-[hi...
ext-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 text-left" ICON = "flex size-4 text-secondary-10 group-data-[disabled]/trigger:text-current" POPUP = "group/popup max-h-[17.25rem] overflow-y-auto origin-(--transfo...
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"
pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 text-left" 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-seconda...
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"
cus-visible:ring-1 focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 text-left" 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-l...
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"
focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 text-left" 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-[t...
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" SCROLL_ARROW_UP = "to...
GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
= "flex-1 text-left" 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 d...
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" SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full cursor-default it...
SEPARATOR = "-mx-1 my-1 h-px bg-muted"
-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]:scale-95 data-[ending-...
POSITIONER = "outline-none" SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=...
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"
n-[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] items-center gap-2 text-...
SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=down]:before:bottom-[-100%]" ...
POSITIONER = "outline-none"
-[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] items-center gap-2 text-sm select-none font-[450] group-...
SCROLL_ARROW_DOWN = "bottom-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=down]:before:bottom-[-100%]...
SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=down]:before:bottom-[-100%]"
oup-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] data-[selected]:text-secondary-12 text-secondary-11 cursor-pointer placeholder:text-secondary-9 data-[selected]:font-medium outline-none data-[highlighted]:bg-secondary-3 scroll-m-1" ITEM_INDICATOR = "text-current" ITEM_TEXT = "text-start" GR...
class SelectBaseComponent(BaseUIComponent): """Base component for select components.""" library = f"{PACKAGE_NAME}/select" @property def import_var(self): """Return the import variable for the select component.""" return ImportVar(tag="Select", package_path="", install=False) clas...
SCROLL_ARROW_DOWN = "bottom-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=down]:before:bottom-[-100%]"
ROUP = "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=top]:rot...
class SelectRoot(SelectBaseComponent): """Groups all parts of the select. Doesn't render its own HTML element.""" tag = "Select.Root" # Identifies the field when a form is submitted. name: Var[str] # The uncontrolled value of the select when it's initially rendered. # To render a controlle...
class SelectBaseComponent(BaseUIComponent): """Base component for select components.""" library = f"{PACKAGE_NAME}/select" @property def import_var(self): """Return the import variable for the select component.""" return ImportVar(tag="Select", package_path="", install=False)
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" SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full curso...
@property def import_var(self): """Return the import variable for the select component.""" return ImportVar(tag="Select", package_path="", install=False) class SelectRoot(SelectBaseComponent): """Groups all parts of the select. Doesn't render its own HTML element.""" tag = "Select.R...
library = f"{PACKAGE_NAME}/select"
] 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" SCROLL_ARROW_UP = "top-0 z-[1] flex h-4 w-full cursor-default items-center justify-center rounded-ui-md bg...
class SelectRoot(SelectBaseComponent): """Groups all parts of the select. Doesn't render its own HTML element.""" tag = "Select.Root" # Identifies the field when a form is submitted. name: Var[str] # The uncontrolled value of the select when it's initially rendered. # To render a controlle...
def import_var(self): """Return the import variable for the select component.""" return ImportVar(tag="Select", package_path="", install=False)
ter justify-center rounded-ui-md bg-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full before:w-full before:content-[''] data-[direction=down]:bottom-0 data-[direction=down]:before:bottom-[-100%]" SCROLL_ARROW_DOWN = "bottom-0 z-[1] flex h-4 w-full cursor-default items-ce...
# Identifies the field when a form is submitted. name: Var[str] # The uncontrolled value of the select when it's initially rendered. # To render a controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when...
tag = "Select.Root"
ers a modal state when open. # - True: user interaction is limited to the select: document page scroll is locked and pointer interactions on outside elements are disabled. # - False: user interaction with the rest of the document is allowed. Defaults to True. modal: Var[bool] # Whether multiple items c...
class SelectTrigger(SelectBaseComponent): """A button that opens the select menu.""" tag = "Select.Trigger" # Whether the component should ignore user interaction. Defaults to False. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *childr...
def create(cls, *children, **props) -> BaseUIComponent: """Create the select root component.""" props["data-slot"] = "select" return super().create(*children, **props)
cked and pointer interactions on outside elements are disabled. # - False: user interaction with the rest of the document is allowed. Defaults to True. modal: Var[bool] # Whether multiple items can be selected. Defaults to False. multiple: Var[bool] # Event handler called after any animations comp...
return super().create(*children, **props) class SelectTrigger(SelectBaseComponent): """A button that opens the select menu.""" tag = "Select.Trigger" # Whether the component should ignore user interaction. Defaults to False. disabled: Var[bool] # The render prop render_: Var[Compon...
props["data-slot"] = "select"
r interaction with the rest of the document is allowed. Defaults to True. modal: Var[bool] # Whether multiple items can be selected. Defaults to False. multiple: Var[bool] # Event handler called after any animations complete when the select popup is opened or closed on_open_change_complete: EventH...
class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["dat...
class SelectTrigger(SelectBaseComponent): """A button that opens the select menu.""" tag = "Select.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,...
# Whether multiple items can be selected. Defaults to False. multiple: Var[bool] # Event handler called after any animations complete when the select popup is opened or closed on_open_change_complete: EventHandler[passthrough_event_spec(bool)] # Whether the component should ignore user interacti...
# 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 select trigger component.""" props["data-slot"] = "selec...
tag = "Select.Trigger"
en_change_complete: EventHandler[passthrough_event_spec(bool)] # Whether the component should ignore user interaction. Defaults to False. disabled: Var[bool] # Whether the user should be unable to choose a different option from the select popup. Defaults to False. read_only: Var[bool] # Whether t...
class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["dat...
def create(cls, *children, **props) -> BaseUIComponent: """Create the select trigger component.""" props["data-slot"] = "select-trigger" cls.set_class_name(ClassNames.TRIGGER, props) return super().create(*children, **props)
raction. Defaults to False. disabled: Var[bool] # Whether the user should be unable to choose a different option from the select popup. Defaults to False. read_only: Var[bool] # Whether the user must choose a value before submitting a form. Defaults to False. required: Var[bool] # A ref to ac...
cls.set_class_name(ClassNames.TRIGGER, props) return super().create(*children, **props) class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *chil...
props["data-slot"] = "select-trigger"
Defaults to False. read_only: Var[bool] # Whether the user must choose a value before submitting a form. Defaults to False. required: Var[bool] # A ref to access the hidden input element. input_ref: Var[Any] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """...
class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup.""" tag = "Select.Backdrop" # The render prop render_: Var[Component] class SelectPortal(SelectBaseComponent): """A portal element that moves the popup to a different part of the DOM. By default, the...
class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-s...
bmitting a form. Defaults to False. required: Var[bool] # A ref to access the hidden input element. input_ref: Var[Any] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select root component.""" props["data-slot"] = "select" return super()....
# The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" cls.set_class_name(ClassNames.VALUE, props) return super().create(*children, **...
tag = "Select.Value"
input element. input_ref: Var[Any] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select root component.""" props["data-slot"] = "select" return super().create(*children, **props) class SelectTrigger(SelectBaseComponent): """A button that op...
class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup.""" tag = "Select.Backdrop" # The render prop render_: Var[Component] class SelectPortal(SelectBaseComponent): """A portal element that moves the popup to a different part of the DOM. By default, the...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" cls.set_class_name(ClassNames.VALUE, props) return super().create(*children, **props)
: """Create the select root component.""" props["data-slot"] = "select" return super().create(*children, **props) class SelectTrigger(SelectBaseComponent): """A button that opens the select menu.""" tag = "Select.Trigger" # Whether the component should ignore user interaction. De...
cls.set_class_name(ClassNames.VALUE, props) return super().create(*children, **props) class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup.""" tag = "Select.Backdrop" # The render prop render_: Var[Component] class SelectPortal(SelectBaseCompon...
props["data-slot"] = "select-value"
class SelectTrigger(SelectBaseComponent): """A button that opens the select menu.""" tag = "Select.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,...
class SelectPortal(SelectBaseComponent): """A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>. """ tag = "Select.Portal" # A parent element to render the portal element into. container: Var[str] class SelectPositione...
class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup.""" tag = "Select.Backdrop" # The render prop render_: Var[Component]
lect.Trigger" # Whether the component should ignore user interaction. Defaults to False. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select trigger component.""" props["data-sl...
# The render prop render_: Var[Component] class SelectPortal(SelectBaseComponent): """A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>. """ tag = "Select.Portal" # A parent element to render the portal element in...
tag = "Select.Backdrop"
faults to False. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select trigger component.""" props["data-slot"] = "select-trigger" cls.set_class_name(ClassNames.TRIGGER, props)...
class SelectPositioner(SelectBaseComponent): """Positions the select menu popup.""" tag = "Select.Positioner" # 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 0. align...
class SelectPortal(SelectBaseComponent): """A portal element that moves the popup to a different part of the DOM. By default, the portal element is appended to <body>. """ tag = "Select.Portal" # A parent element to render the portal element into. container: Var[str]
he select trigger component.""" props["data-slot"] = "select-trigger" cls.set_class_name(ClassNames.TRIGGER, props) return super().create(*children, **props) class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render...
# A parent element to render the portal element into. container: Var[str] class SelectPositioner(SelectBaseComponent): """Positions the select menu popup.""" tag = "Select.Positioner" # How to align the popup relative to the specified side. Defaults to "center". align: Var[LiteralAlign] ...
tag = "Select.Portal"
assNames.TRIGGER, props) return super().create(*children, **props) class SelectValue(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUICompon...
class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] ...
class SelectPositioner(SelectBaseComponent): """Positions the select menu popup.""" tag = "Select.Positioner" # 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 0. align_of...
e(SelectBaseComponent): """Text label of the currently selected item.""" tag = "Select.Value" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-...
# 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 0. align_offset: Var[int] # Which side of the anchor element to align the popup against. May automatically change to avoid c...
tag = "Select.Positioner"
collision_padding: Var[int | list[int]] # Whether to maintain the popup in the viewport after the anchor element was scrolled out of view. Defaults to False. sticky: Var[bool] # Determines which CSS position property to use. Defaults to "absolute". position_method: Var[LiteralPosition] # Whethe...
class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] ...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-positioner" props.setdefault("side_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props)
ment was scrolled out of view. Defaults to False. sticky: Var[bool] # Determines which CSS position property to use. Defaults to "absolute". position_method: Var[LiteralPosition] # Whether the positioner overlaps the trigger so the selected item's text is aligned with the trigger's value text. This on...
props.setdefault("side_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props) class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @...
props["data-slot"] = "select-positioner"
# Whether the positioner overlaps the trigger so the selected item's text is aligned with the trigger's value text. This only applies to mouse input and is automatically disabled if there is not enough space. Defaults to False. align_item_with_trigger: Var[bool] = Var.create(False) # Whether the popup trac...
class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component."""...
class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "...
with the trigger's value text. This only applies to mouse input and is automatically disabled if there is not enough space. Defaults to False. align_item_with_trigger: Var[bool] = Var.create(False) # Whether the popup tracks any layout shift of its positioning anchor. Defaults to True. track_anchor: Var[bo...
# The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-popup" cls.set_class_name(ClassNames.POPUP, props) return super().create(*children, **...
tag = "Select.Popup"
if there is not enough space. Defaults to False. align_item_with_trigger: Var[bool] = Var.create(False) # Whether the popup tracks any layout shift of its positioning anchor. Defaults to True. track_anchor: Var[bool] # Distance between the anchor and the popup in pixels. Defaults to 0. side_offset...
class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component."""...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-popup" cls.set_class_name(ClassNames.POPUP, props) return super().create(*children, **props)
Whether the popup tracks any layout shift of its positioning anchor. Defaults to True. track_anchor: Var[bool] # Distance between the anchor and the popup in pixels. Defaults to 0. side_offset: Var[int] # Determines how to handle collisions when positioning the popup. collision_avoidance: Var[str]...
cls.set_class_name(ClassNames.POPUP, props) return super().create(*children, **props) class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod d...
props["data-slot"] = "select-popup"
he anchor and the popup in pixels. Defaults to 0. side_offset: Var[int] # Determines how to handle collisions when positioning the popup. collision_avoidance: Var[str] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: ""...
class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[str] # A unique value that identifies t...
class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component.""" ...
en positioning the popup. collision_avoidance: Var[str] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-positioner" props.setdefault("side_...
# The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list" return super().create(*children, **props) class SelectItem(SelectBaseComponent): """A...
tag = "Select.List"
_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-positioner" props.setdefault("side_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().c...
class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[str] # A unique value that identifies t...
def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list" return super().create(*children, **props)
e the dialog trigger component.""" props["data-slot"] = "select-positioner" props.setdefault("side_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props) class SelectPopup(SelectBaseComponent): """A container for the select items.""" ...
return super().create(*children, **props) class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label...
props["data-slot"] = "select-list"
props.setdefault("side_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props) class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @clas...
class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-sl...
class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[str] # A unique value that identifies this...
) return super().create(*children, **props) class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialo...
# Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[str] # A unique value that identifies this select item. value: Var[Any] # Whether the component should ignore user interaction. disabled: Var[b...
tag = "Select.Item"
assNames.POPUP, props) return super().create(*children, **props) class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **pr...
class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-sl...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item" cls.set_class_name(ClassNames.ITEM, props) return super().create(*children, **props)
"""A list component that wraps select items. Renders a <div> element.""" tag = "Select.List" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list"...
cls.set_class_name(ClassNames.ITEM, props) return super().create(*children, **props) class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, *...
props["data-slot"] = "select-item"
ar[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list" return super().create(*children, **props) class SelectItem(SelectBaseComponent): """An individual option in the select menu...
class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" # Whether to keep the HTML element in the DOM when the item is not selected. Defaults to False. keep_mounted: Var[bool] # The render prop render_: Var[Component...
class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"...
"""Create the select list component.""" props["data-slot"] = "select-list" return super().create(*children, **props) class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when th...
# The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item-text" cls.set_class_name(ClassNames.ITEM_TEXT, props) return super().create(*chil...
tag = "Select.ItemText"
return super().create(*children, **props) class SelectItem(SelectBaseComponent): """An individual option in the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[...
class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" # Whether to keep the HTML element in the DOM when the item is not selected. Defaults to False. keep_mounted: Var[bool] # The render prop render_: Var[Component...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item-text" cls.set_class_name(ClassNames.ITEM_TEXT, props) return super().create(*children, **props)
n the select menu.""" tag = "Select.Item" # Overrides the text label to use on the trigger when this item is selected and when the item is matched during keyboard text navigation. label: Var[str] # A unique value that identifies this select item. value: Var[Any] # Whether the component shoul...
cls.set_class_name(ClassNames.ITEM_TEXT, props) return super().create(*children, **props) class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" # Whether to keep the HTML element in the DOM when the item is not ...
props["data-slot"] = "select-item-text"
matched during keyboard text navigation. label: Var[str] # A unique value that identifies this select item. value: Var[Any] # Whether the component should ignore user interaction. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *childre...
class SelectGroup(SelectBaseComponent): """Groups related select items with the corresponding label.""" tag = "Select.Group" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" ...
class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" # Whether to keep the HTML element in the DOM when the item is not selected. Defaults to False. keep_mounted: Var[bool] # The render prop render_: Var[Component] ...
t item. value: Var[Any] # Whether the component should ignore user interaction. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] ...
# Whether to keep the HTML element in the DOM when the item is not selected. Defaults to False. keep_mounted: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" pr...
tag = "Select.ItemIndicator"
Component: """Create the dialog trigger component.""" props["data-slot"] = "select-item" cls.set_class_name(ClassNames.ITEM, props) return super().create(*children, **props) class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemTex...
class SelectGroup(SelectBaseComponent): """Groups related select items with the corresponding label.""" tag = "Select.Group" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" ...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item-indicator" cls.set_class_name(ClassNames.ITEM_INDICATOR, props) return super().create(*children, **props)
s.set_class_name(ClassNames.ITEM, props) return super().create(*children, **props) class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> ...
cls.set_class_name(ClassNames.ITEM_INDICATOR, props) return super().create(*children, **props) class SelectGroup(SelectBaseComponent): """Groups related select items with the corresponding label.""" tag = "Select.Group" # The render prop render_: Var[Component] @classmethod ...
props["data-slot"] = "select-item-indicator"
the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item-text" cls.set_class_name(ClassNames.ITEM...
class SelectGroupLabel(SelectBaseComponent): """An accessible label that is automatically associated with its parent group.""" tag = "Select.GroupLabel" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dial...
class SelectGroup(SelectBaseComponent): """Groups related select items with the corresponding label.""" tag = "Select.Group" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" ...
trigger component.""" props["data-slot"] = "select-item-text" cls.set_class_name(ClassNames.ITEM_TEXT, props) return super().create(*children, **props) class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" ...
class SelectGroupLabel(SelectBaseComponent): """An accessible label that is automatically associated with its parent group.""" tag = "Select.GroupLabel" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dial...
def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-group" cls.set_class_name(ClassNames.GROUP, props) return super().create(*children, **props)
EXT, props) return super().create(*children, **props) class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected.""" tag = "Select.ItemIndicator" # Whether to keep the HTML element in the DOM when the item is not selected. Defaults to False. keep_mounted...
cls.set_class_name(ClassNames.GROUP, props) return super().create(*children, **props) class SelectGroupLabel(SelectBaseComponent): """An accessible label that is automatically associated with its parent group.""" tag = "Select.GroupLabel" # The render prop render_: Var[Component] ...
props["data-slot"] = "select-group"