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" cls.set_class_name(ClassNames.VIEWPORT, props) return super().create(*children, **props) class ScrollAreaContent(ScrollAreaBaseComponent): """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"] = "scroll-area-content" cls.set_class_name(ClassNames.CONTENT, props) return super().create(*children, **props) class ScrollAreaScrollbar(ScrollAreaBaseComponent): """The scrollbar of the scroll area."""
# 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, *children, **props) -> 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 == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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
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"] = "scroll-area-content" cls.set_class_name(ClassNames.CONTENT, props) return super().create(*children, **props) class ScrollAreaScrollbar(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[bool] = Var.create(False) # Render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area scrollbar component."""
orientation = props.get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 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, **props) class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and
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(ClassNames.CONTENT, props) return super().create(*children, **props) class ScrollAreaScrollbar(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[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"
scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 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, **props) class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars.""" tag = "ScrollArea.Corner"
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, **props) class ScrollAreaScrollbar(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[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("orientation", "vertical")
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, **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) 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: """Create the scroll area corner component.""" props["data-slot"] = "scroll-area-corner" cls.set_class_name(C
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[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("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollbar_classes, 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[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(*children, **props) 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[bool] = Var.create(False) # Props for different component parts _scrollbar_props = {"orientation", "keep_mounted"} @classmethod def create(cls
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"] = "scroll-area-thumb" cls.set_class_name(ClassNames.THUMB, props) return super().create(*children, **props)
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 def create(cls, *children, **props) -> 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 == "vertical", ClassNames.SCROLLBAR_VERTICAL, ClassNames.SCROLLBAR_HORIZONTAL, ), ) cls.set_class_name(scrollbar_classes, props) return super().create(*children, **props) class ScrollAreaThumb(ScrollAreaBaseComponent): """The thumb of the scrollbar."""
# 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, **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[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(*children, **props) class HighLevelScrollArea(ScrollAreaRoot): """High level wrapper for the Scroll Area component.""" # Orientation of the scroll area
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 scrollbar component.""" props["data-slot"] = "scroll-area-scrollbar" orientation = props.get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 render_: Var[Component] @classmethod
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: """Create the scroll area corner component.""" 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[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) # Props for different component parts _scrollbar_props = {"orientation", "keep_mounted"} @classmethod def create(cls
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("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area thumb component."""
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 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(*children, **props) 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[bool] = Var.create(False) # Props for different compo
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 == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 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, **props)
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[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: *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._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.crea
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: """Create the scroll area corner component.""" props["data-slot"] = "scroll-area-corner" cls.set_class_name(ClassNames.CORNER, props) return super().create(*children, **props)
get("orientation", "vertical") scrollbar_classes = cn( ClassNames.SCROLLBAR_BASE, cond( orientation == "vertical", ClassNames.SCROLLBAR_VERTICAL, 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 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, **props) class ScrollAreaCorner(ScrollAreaBaseComponent): """A small rectangular area that appears at the intersection of horizontal and vertical scrollbars."""
# 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(*children, **props) 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[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: *children: The content to be scrollable. **props: Addi
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(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"] = "scroll-area-thumb" 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 render_: Var[Component] @classmethod
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[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: *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._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.crea
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 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, **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[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the scroll area corner component."""
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") # Whether to keep the HTML element in the DOM when the viewport 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: *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._scr
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[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(*children, **props) 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[bool] = Var.create(False) # Props for different component parts
@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 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( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create) viewport = staticmethod(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[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) # 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: *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
return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) 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 = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create) scroll_area = ScrollArea()
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: *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._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, )
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 = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create)
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 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.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components."""
viewport = staticmethod(ScrollAreaViewport.create) 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 = ScrollArea()
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. 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( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create)
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 = ScrollArea()
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. """ # 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, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create) viewport = staticmethod(ScrollAreaViewport.create)
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 scrollbar_props = {k: props.pop(k) for k in cls._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create) viewport = staticmethod(ScrollAreaViewport.create) content = staticmethod(ScrollAreaContent.create)
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._scrollbar_props & props.keys()} return ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) class ScrollArea(ComponentNamespace): """Namespace for Scroll Area components.""" root = staticmethod(ScrollAreaRoot.create) viewport = staticmethod(ScrollAreaViewport.create) content = staticmethod(ScrollAreaContent.create) scrollbar = staticmethod(ScrollAreaScrollbar.create)
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 ScrollAreaRoot.create( ScrollAreaViewport.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) 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 = staticmethod(ScrollAreaThumb.create)
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.create( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) 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 = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create)
__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( ScrollAreaContent.create( *children, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) 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 = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames
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, ), ), ScrollAreaScrollbar.create( ScrollAreaThumb.create(), **scrollbar_props, ), **props, ) 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 = staticmethod(ScrollAreaThumb.create) corner = staticmethod(ScrollAreaCorner.create) class_names = ClassNames __call__ = staticmethod(HighLevelScrollArea.create)
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 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", "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-center justify-between gap-3 select-none text-sm [&>span]:line-clamp-
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 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", "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 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:
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 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["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-visible:ring-1 focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 t
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 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["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/trigger" VALUE = "flex-1 text-left" ICON = "flex size-4 text-secondary-10 group-data
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 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: """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 size-4 text-secondary-10 group-data-[disabled]/trigger:text-current" POPUP
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", "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: """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 size-4 text-secondary-10 group-data-[disabled]/trigger:text-current" POPUP = "group/popup max-h-[17.25rem]
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 Var
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", "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-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 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 borde
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 Var from reflex_ui.components.base.button import button
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", "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 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 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
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 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 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: """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 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-[
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 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.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["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/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-[transform,scale,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data
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 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
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: """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 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]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-non
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 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
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 = "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 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]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-trac
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 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 LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"]
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 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 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]: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-w
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 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 LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"]
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-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-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] items-center gap-2 text-sm select-none font-[450] group-dat
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 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 LiteralSelectSize = Literal["xs", "sm", "md", "lg", "xl"] LiteralAlign = Literal["start", "center", "end"] LiteralSide = Literal["bottom", "inline-end", "inline-start", "left", "right", "top"]
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/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-[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-sm select-none font-[450] group-data-[side=none]/popup:min-w-[calc(var(--anchor-wi
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 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 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"]
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 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]: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-data-[side=none]/popup:min-w-[calc(var(--anchor-width)+1rem)] data-[selected]:text-secondary-12 text-seco
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 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 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 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) 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 controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `o
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 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]: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-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" 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=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-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-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%]"
"""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 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 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: """Class names for select components."""
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]: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-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" GROUP = "p-1" GROUP_LABEL = "px-2 py-1.5 text-sm font-semi
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 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", "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 select-none text-sm [&>span]:line-clamp-1 cursor-pointer focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-4 group/trigger"
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]: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-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" GROUP = "p-1" GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold" SEPARATOR = "-mx-1 my
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.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["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-visible:ring-1 focus-visible:ring-primary-4 group/trigger" VALUE = "flex-1 text-left"
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 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-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" 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-[-
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 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: """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 size-4 text-secondary-10 group-data-[disabled]/trigger:text-current"
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-[highlighted]:bg-secondary-3 scroll-m-1" 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-[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-secondary-1 text-center text-xs before:absolute before:top-[-100%] before:left-0 before:h-full
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 scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
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-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 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]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 outline-none scrollbar-thin scrollbar-thumb-secondary-9 scrollbar-track-transparent"
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-[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-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-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-[d
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-[highlighted]:bg-secondary-3 scroll-m-1"
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-(--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 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-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_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]: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-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-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-[direct
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-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" 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-[highlighted]:bg-secondary-3 scroll-m-1" ITEM_INDICATOR = "text-current"
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=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-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-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
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-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] 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-[highlighted]:bg-secondary-3 scroll-m-1" ITEM_INDICATOR = "text-current" ITEM_TEXT = "text-start"
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" 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=down]:before:bottom-[-100%]" 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%]" class Select
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-[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-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-[highlighted]:bg-secondary-3 scroll-m-1" ITEM_INDICATOR = "text-current" ITEM_TEXT = "text-start" GROUP = "p-1"
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 = "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%]" 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%]" class SelectBaseComponent(BaseUIComponent): """Base component
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 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-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" GROUP = "p-1" GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold"
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 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_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%]" class SelectBaseComponent(BaseUIComponent): """Base component for select components.""" library = f"
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-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-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" GROUP = "p-1" GROUP_LABEL = "px-2 py-1.5 text-sm font-semibold" SEPARATOR = "-mx-1 my-1 h-px bg-muted"
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=down]:before:bottom-[-100%]" 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%]" 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) class SelectRoo
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-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-[highlighted]:bg-secondary-3 scroll-m-1" 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-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"
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%]" 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%]" 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) class SelectRoot(SelectBaseComponent): """G
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-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" 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=top]:rotate-180" POSITIONER = "outline-none"
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%]" 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) 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 controlled select, use the `value` prop instead. de
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" 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=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-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%]"
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) 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 controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `o
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]: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-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-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%]"
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 controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `open` prop instead. default_open: Var[bool] # Whether the select popup is currently open open: Var[bool] # Event handler called when the select popup is opened or closed on_open_change: EventHandler[passthrough_event_spec(bool)] # A ref to imperative actions. # When specified, the s
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 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_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%]" class SelectBaseComponent(BaseUIComponent): """Base component for select components."""
@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.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 controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `open` prop instead. default_open: Var[bool] # Whether the select popup is currently open open: Var[bool] # Event hand
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-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-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%]" class SelectBaseComponent(BaseUIComponent): """Base component for select components.""" library = f"{PACKAGE_NAME}/select" @property
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 controlled select, use the `value` prop instead. default_value: Var[Any] # The value of the select value: Var[Any] # Callback fired when the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `open` prop instead. default_open: Var[bool] # Whether the select popup is currently open open: Var[bool] # Event handler called when the select popup is opened or closed on_open_change: EventHandler[passthrough_event_spec(bool)] # A ref to imperative actions. # When specified, the s
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-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%]" 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) class SelectRoot(SelectBaseComponent): """Groups all parts of the select. Doesn't render its own HTML element."""
# 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 the value of the select changes. Use when controlled. on_value_change: EventHandler[passthrough_event_spec(str)] # Whether the select popup is initially open. # To render a controlled select popup, use the `open` prop instead. default_open: Var[bool] # Whether the select popup is currently open open: Var[bool] # Event handler called when the select popup is opened or closed on_open_change: EventHandler[passthrough_event_spec(bool)] # A ref to imperative actions. # When specified, the select will not be unmounted when closed. # Instead, the `unmount` function must be called to unmount the select manually. # Useful when t
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 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 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 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
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, **props) -> BaseUIComponent: """Create the 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 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, **props)
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 complete when the select popup is opened or closed on_open_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 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: """Create the select root component."""
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[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) 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) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" cls.set_class_name(ClassNames.VALUE, props)
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: 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 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: """Create the select root component.""" props["data-slot"] = "select" 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) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" 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(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 SelectPositioner(SelectBaseComponent): """Positions the select m
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, **props) -> BaseUIComponent: """Create the select trigger component.""" props["data-slot"] = "select-trigger" cls.set_class_name(ClassNames.TRIGGER, props) return super().create(*children, **props)
# 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 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 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: """Create the select root component.""" props["data-slot"] = "select" return super().create(*children, **props) class SelectTrigger(SelectBaseComponent): """A button that opens the select menu."""
# 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"] = "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 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, **props) class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup.""" tag = "Select
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 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: """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. Defaults to False. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod
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-slot"] = "select-value" 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(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 SelectPositioner(SelectBaseComponent): """Positions the select m
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 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().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[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the select trigger component."""
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, *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) 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 portal element is appended to <body>. """ tag = "Select.Portal" # A parent element to render the portal element in
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: """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. 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"] = "select-trigger" cls.set_class_name(ClassNames.TRIGGER, 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(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 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_offset: Var[int] # Which side of the anchor element to align the popup against. May automatically change to avoid collisions. Defaults to "bottom". side: Var[LiteralSide] # Minimum distance
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-slot"] = "select-value" cls.set_class_name(ClassNames.VALUE, props) return super().create(*children, **props)
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().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[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) return super().create(*children, **props) class SelectValue(SelectBaseComponent): """Text label of the currently selected item."""
# 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, **props) 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 portal element is appended to <body>. """ tag = "Select.Portal" # 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 "c
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 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, **props) -> BaseUIComponent: """Create the 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 prop render_: Var[Component] @classmethod
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 portal element is appended to <body>. """ tag = "Select.Portal" # 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] # 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 collisions. Defaults to "bottom". side: Var[LiteralSide] # Minimum distance
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. 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"] = "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 prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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(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 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_offset: Var[int] # Which side of the anchor element to align the popup against. May automaticall
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, **props) -> BaseUIComponent: """Create the 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 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, **props)
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 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_offset: Var[int] # Which side of the anchor element to align the popup against. May automatically change to avoid collisions. Defaults to "bottom". side: Var[LiteralSide] # 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_pa
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-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 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, **props) class SelectBackdrop(SelectBaseComponent): """An overlay displayed beneath the menu popup."""
# 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 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] # 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 collisions. Defaults to "bottom". side: Var[LiteralSide] # 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 roun
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) 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) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" 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 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_offset: Var[int] # Which side of the anchor element to align the popup against. May automatically change to avoid collisions. Defaults to "bottom". side: Var[LiteralSide] # 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 boundary. Defaults to 5. 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]
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 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, **props) 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 portal element is appended to <body>. """
# 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] # 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 collisions. Defaults to "bottom". side: Var[LiteralSide] # 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 boundary. Defaults to 5. collision_padding: Var[int | list[int]] # Whether to maintain the popup in the viewport after th
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) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-value" 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(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 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"] = "select-popup" 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 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.""" tag = "Select.Item" # Overrides the text label
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_offset: Var[int] # Which side of the anchor element to align the popup against. May automatically change to avoid collisions. Defaults to "bottom". side: Var[LiteralSide] # 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 boundary. Defaults to 5. 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] # 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 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] # 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_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props)
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-value" 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(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 SelectPositioner(SelectBaseComponent): """Positions the select menu popup."""
# 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 collisions. Defaults to "bottom". side: Var[LiteralSide] # 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 boundary. Defaults to 5. 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]
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] # 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 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] # The render prop render_: Var[Component] @classmethod
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"] = "select-popup" 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 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.""" tag = "Select.Item" # Overrides the text label
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 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[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] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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] @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, **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, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list" return super().create(*children, **props
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 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] # 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_offset", 4) cls.set_class_name(ClassNames.POSITIONER, 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, **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.""" 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 should ignore user interaction. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Creat
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"] = "select-popup" cls.set_class_name(ClassNames.POPUP, props) return super().create(*children, **props)
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[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] # 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_offset", 4) cls.set_class_name(ClassNames.POSITIONER, props) return super().create(*children, **props) class SelectPopup(SelectBaseComponent): """A container for the select items."""
# 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, **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, **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.""" 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.
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: 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: """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) class SelectPopup(SelectBaseComponent): """A container for the select items.""" tag = "Select.Popup" # The render prop render_: Var[Component] @classmethod
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.""" 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 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[bool] # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Creat
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] # 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_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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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 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.""" 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 should ignore user interaction. disabled: Var[bool] # The render prop render_: Var[Com
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: """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) 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"] = "select-popup" cls.set_class_name(ClassNames.POPUP, props) 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[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, *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) 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) -> BaseU
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.""" props["data-slot"] = "select-list" return super().create(*children, **props)
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_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] @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, **props) class SelectList(SelectBaseComponent): """A list component that wraps select items. Renders a <div> element."""
# 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): """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 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, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item" cls.set_class_name(ClassNames.ITEM, props) return
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().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 dialog trigger component.""" props["data-slot"] = "select-popup" 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
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 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, *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) 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) -> BaseU
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.""" tag = "Select.Popup" # 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, **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, **props) -> BaseUIComponent: """Create the select list component."""
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[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, *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) class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmetho
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] @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, **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, **props) -> BaseUIComponent: """Create the select list component.""" props["data-slot"] = "select-list" 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) -> 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) 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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-item-indicator" cls.set_class_name(ClassNames.ITEM_IN
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 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, *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)
) 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 dialog trigger component.""" props["data-slot"] = "select-popup" 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 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."""
# 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[bool] # The render prop render_: Var[Component] @classmethod 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) 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"] = "select-item-text"
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, **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.""" 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 should ignore user interaction. disabled: Var[bool] # The render prop render_: Var[Component] @classmethod
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"] = "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" # 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.""" props["data-slot"] = "select-item-indicator" cls.set_class_name(ClassNames.ITEM_IN
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" 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[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, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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) -> 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) 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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."
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.""" 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 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"] = "select-item" cls.set_class_name(ClassNames.ITEM, 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: Var[bool] # The render prop render_: Var[Component] @classmethod 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) 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.""" props["data-slot"] = "select-group" cls.set_class_nam
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"] = "select-item-text" cls.set_class_name(ClassNames.ITEM_TEXT, props) return super().create(*children, **props)
"""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 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[bool] # The render prop render_: Var[Component] @classmethod 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) class SelectItemText(SelectBaseComponent): """A text label of the select item."""
# 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(*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: Var[bool] # The render prop render_: Var[Component] @classmethod 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) class SelectGroup(SelectBaseComponent): """Gr
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[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, *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) class SelectItemText(SelectBaseComponent): """A text label of the select item.""" tag = "Select.ItemText" # The render prop render_: Var[Component] @classmethod
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] @classmethod 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) 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.""" props["data-slot"] = "select-group" cls.set_class_nam
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 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"] = "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.ItemText" # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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 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.""" props["data-slot"] = "select-item-indicator" 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 def create(cls, *children, **props) -> BaseUIComponent: """Cre
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, *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) 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"] = "select-item-text" cls.set_class_name(ClassNames.ITEM_TEXT, 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 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) 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 dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(ClassNames.GROUP_LABEL, props) return super().create(*children, **props) class SelectSeparator(SelectBaseC
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] @classmethod 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)
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"] = "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.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_TEXT, props) return super().create(*children, **props) class SelectItemIndicator(SelectBaseComponent): """Indicates whether the select item is selected."""
# 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.""" props["data-slot"] = "select-item-indicator" 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 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) class SelectGroupLabel(SelectBaseComponent): """An accessi
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.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_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 selected. Defaults to False. keep_mounted: Var[bool] # The render prop render_: Var[Component] @classmethod
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.""" props["data-slot"] = "select-group" 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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(ClassNames.GROUP_LABEL, props) return super().create(*children, **props) class SelectSeparator(SelectBaseC
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) -> 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) 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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component."""
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 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) 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 dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(Class
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_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 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.""" props["data-slot"] = "select-item-indicator" cls.set_class_name(ClassNames.ITEM_INDICATOR, 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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(ClassNames.GROUP_LABEL, props) return super().create(*children, **props) class SelectSeparator(SelectBaseComponent): """A separator element accessible to screen readers.""" tag = "Select.Separator" # The orientation of the separator. orientation: Var[LiteralOrientation] = Var.create("horizontal") # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-separator" cls.set_class_na
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.""" props["data-slot"] = "select-group" cls.set_class_name(ClassNames.GROUP, props) return super().create(*children, **props)
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" # 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.""" props["data-slot"] = "select-item-indicator" 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
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 dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(ClassNames.GROUP_LABEL, props) return super().create(*children, **props) class SelectSeparator(SelectBaseComponent): """A separator element accessible to screen readers.""" tag = "Select.Separator" # The orientation of the separator. orientation: Var[LiteralOrientation] = Var.create("horizontal") # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-separator" cls.set_class_na
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: Var[bool] # The render prop render_: Var[Component] @classmethod 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) 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."""
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] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the dialog trigger component.""" props["data-slot"] = "select-group-label" cls.set_class_name(ClassNames.GROUP_LABEL, props) return super().create(*children, **props) class SelectSeparator(SelectBaseComponent): """A separator element accessible to screen readers.""" tag = "Select.Separator" # The orientation of the separator. orientation: Var[LiteralOrientation] = Var.create("horizontal") # The render prop render_: Var[Component] @classmethod def create(cls, *children, **props) -> BaseUIComponent: """Create the
props["data-slot"] = "select-group"