diff --git a/reflex/components/radix/__init__.py b/reflex/components/radix/__init__.py
index ee7c2ec7a..08d1dcfef 100644
--- a/reflex/components/radix/__init__.py
+++ b/reflex/components/radix/__init__.py
@@ -1,3 +1,4 @@
"""Namespace for components provided by @radix-ui packages."""
-from . import primitives, themes
+from .primitives import *
+from .themes import *
diff --git a/reflex/components/radix/themes/__init__.py b/reflex/components/radix/themes/__init__.py
index 7ecdfb749..ec02436b1 100644
--- a/reflex/components/radix/themes/__init__.py
+++ b/reflex/components/radix/themes/__init__.py
@@ -1,8 +1,6 @@
"""Namespace for components provided by the @radix-ui/themes library."""
-from .base import Theme, ThemePanel
+from .base import theme as theme
+from .base import theme_panel as theme_panel
from .components import *
from .layout import *
from .typography import *
-
-theme = Theme.create
-theme_panel = ThemePanel.create
diff --git a/reflex/components/radix/themes/base.py b/reflex/components/radix/themes/base.py
index cc572d662..d7bed2d41 100644
--- a/reflex/components/radix/themes/base.py
+++ b/reflex/components/radix/themes/base.py
@@ -210,3 +210,7 @@ class RadixThemesColorModeProvider(Component):
library = "/components/reflex/radix_themes_color_mode_provider.js"
tag = "RadixThemesColorModeProvider"
is_default = True
+
+
+theme = Theme.create
+theme_panel = ThemePanel.create
diff --git a/reflex/components/radix/themes/base.pyi b/reflex/components/radix/themes/base.pyi
index fcfb4732a..5e3725e9c 100644
--- a/reflex/components/radix/themes/base.pyi
+++ b/reflex/components/radix/themes/base.pyi
@@ -789,3 +789,6 @@ class RadixThemesColorModeProvider(Component):
TypeError: If an invalid child is passed.
"""
...
+
+theme = Theme.create
+theme_panel = ThemePanel.create
diff --git a/reflex/components/radix/themes/components/__init__.py b/reflex/components/radix/themes/components/__init__.py
index 12b1105eb..c4beba8f1 100644
--- a/reflex/components/radix/themes/components/__init__.py
+++ b/reflex/components/radix/themes/components/__init__.py
@@ -1,216 +1,59 @@
"""Radix themes components."""
-from .alertdialog import (
- AlertDialogAction,
- AlertDialogCancel,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogRoot,
- AlertDialogTitle,
- AlertDialogTrigger,
-)
-from .aspectratio import AspectRatio
-from .avatar import Avatar
-from .badge import Badge
-from .button import Button
-from .callout import Callout, CalloutIcon, CalloutRoot, CalloutText
-from .card import Card
-from .checkbox import Checkbox, HighLevelCheckbox
-from .contextmenu import (
- ContextMenuContent,
- ContextMenuItem,
- ContextMenuRoot,
- ContextMenuSeparator,
- ContextMenuSub,
- ContextMenuSubContent,
- ContextMenuSubTrigger,
- ContextMenuTrigger,
-)
-from .dialog import (
- DialogClose,
- DialogContent,
- DialogDescription,
- DialogRoot,
- DialogTitle,
- DialogTrigger,
-)
-from .dropdownmenu import (
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuRoot,
- DropdownMenuSeparator,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuTrigger,
-)
-from .hovercard import HoverCardContent, HoverCardRoot, HoverCardTrigger
-from .iconbutton import IconButton
-from .icons import Icon
-from .inset import Inset
-from .popover import PopoverClose, PopoverContent, PopoverRoot, PopoverTrigger
-from .radiogroup import HighLevelRadioGroup, RadioGroupItem, RadioGroupRoot
-from .scrollarea import ScrollArea
-from .select import (
- HighLevelSelect,
- SelectContent,
- SelectGroup,
- SelectItem,
- SelectLabel,
- SelectRoot,
- SelectSeparator,
- SelectTrigger,
-)
-from .separator import Separator
-from .slider import Slider
-from .switch import Switch
-from .table import (
- TableBody,
- TableCell,
- TableColumnHeaderCell,
- TableHeader,
- TableRoot,
- TableRow,
- TableRowHeaderCell,
-)
-from .tabs import TabsContent, TabsList, TabsRoot, TabsTrigger
-from .textarea import TextArea
-from .textfield import Input, TextFieldInput, TextFieldRoot, TextFieldSlot
-from .tooltip import Tooltip
+from .alertdialog import alert_dialog as alert_dialog
+from .aspectratio import aspect_ratio as aspect_ratio
+from .avatar import avatar as avatar
+from .badge import badge as badge
+from .button import button as button
+from .callout import callout as callout
+from .card import card as card
+from .checkbox import checkbox as checkbox
+from .contextmenu import context_menu as context_menu
+from .dialog import dialog as dialog
+from .dropdownmenu import dropdown_menu as dropdown_menu
+from .hovercard import hover_card as hover_card
+from .iconbutton import icon_button as icon_button
+from .icons import icon as icon
+from .inset import inset as inset
+from .popover import popover as popover
+from .radiogroup import radio_group as radio_group
+from .scrollarea import scroll_area as scroll_area
+from .select import select as select
+from .separator import separator as separator
+from .slider import slider as slider
+from .switch import switch as switch
+from .table import table as table
+from .tabs import tabs as tabs
+from .textarea import text_area as text_area
+from .textfield import text_field as text_field
+from .tooltip import tooltip as tooltip
-# Alert Dialog
-alertdialog_root = AlertDialogRoot.create
-alertdialog_trigger = AlertDialogTrigger.create
-alertdialog_content = AlertDialogContent.create
-alertdialog_title = AlertDialogTitle.create
-alertdialog_description = AlertDialogDescription.create
-alertdialog_action = AlertDialogAction.create
-alertdialog_cancel = AlertDialogCancel.create
-
-# Aspect Ratio
-aspect_ratio = AspectRatio.create
-
-# Avatar
-avatar = Avatar.create
-
-# Badge
-badge = Badge.create
-
-# Button
-button = Button.create
-
-# Callout
-callout_root = CalloutRoot.create
-callout_icon = CalloutIcon.create
-callout_text = CalloutText.create
-callout = Callout.create
-
-# Card
-card = Card.create
-
-# Checkbox
-checkbox = Checkbox.create
-checkbox_hl = HighLevelCheckbox.create
-
-# Context Menu
-contextmenu_root = ContextMenuRoot.create
-contextmenu_sub = ContextMenuSub.create
-contextmenu_trigger = ContextMenuTrigger.create
-contextmenu_content = ContextMenuContent.create
-contextmenu_sub_content = ContextMenuSubContent.create
-contextmenu_sub_trigger = ContextMenuSubTrigger.create
-contextmenu_item = ContextMenuItem.create
-contextmenu_separator = ContextMenuSeparator.create
-
-
-# Dialog
-dialog_root = DialogRoot.create
-dialog_trigger = DialogTrigger.create
-dialog_content = DialogContent.create
-dialog_title = DialogTitle.create
-dialog_description = DialogDescription.create
-dialog_close = DialogClose.create
-
-# Dropdown Menu
-dropdownmenu_root = DropdownMenuRoot.create
-dropdownmenu_trigger = DropdownMenuTrigger.create
-dropdownmenu_content = DropdownMenuContent.create
-dropdownmenu_sub = DropdownMenuSub.create
-dropdownmenu_sub_content = DropdownMenuSubContent.create
-dropdownmenu_sub_trigger = DropdownMenuSubTrigger.create
-dropdownmenu_item = DropdownMenuItem.create
-dropdownmenu_separator = DropdownMenuSeparator.create
-
-# Hover Card
-hovercard_root = HoverCardRoot.create
-hovercard_trigger = HoverCardTrigger.create
-hovercard_content = HoverCardContent.create
-
-# Icon
-icon = Icon.create
-
-# Icon Button
-icon_button = IconButton.create
-
-# Inset
-inset = Inset.create
-
-# Popover
-popover_root = PopoverRoot.create
-popover_trigger = PopoverTrigger.create
-popover_content = PopoverContent.create
-popover_close = PopoverClose.create
-
-# Radio Group
-radio_group_root = RadioGroupRoot.create
-radio_group_item = RadioGroupItem.create
-radio_group = HighLevelRadioGroup.create
-
-# Scroll Area
-scroll_area = ScrollArea.create
-
-# Select
-select_root = SelectRoot.create
-select_trigger = SelectTrigger.create
-select_content = SelectContent.create
-select_item = SelectItem.create
-select_separator = SelectSeparator.create
-select_group = SelectGroup.create
-select_label = SelectLabel.create
-select = HighLevelSelect.create
-
-# Separator
-separator = Separator.create
-
-# Slider
-slider = Slider.create
-
-# Switch
-switch = Switch.create
-
-# Table
-table_root = TableRoot.create
-table_header = TableHeader.create
-table_body = TableBody.create
-table_row = TableRow.create
-table_cell = TableCell.create
-table_column_header_cell = TableColumnHeaderCell.create
-table_row_header_cell = TableRowHeaderCell.create
-
-# Tabs
-tabs_root = TabsRoot.create
-tabs_list = TabsList.create
-tabs_trigger = TabsTrigger.create
-tabs_content = TabsContent.create
-
-# Text Area
-textarea = TextArea.create
-
-# Text Field
-textfield_root = TextFieldRoot.create
-textfield_input = TextFieldInput.create
-textfield_slot = TextFieldSlot.create
-input = Input.create
-
-# Tooltip
-tooltip = Tooltip.create
+__all__ = [
+ "alert_dialog",
+ "aspect_ratio",
+ "avatar",
+ "badge",
+ "button",
+ "callout",
+ "card",
+ "checkbox",
+ "context_menu",
+ "dialog",
+ "dropdown_menu",
+ "hover_card",
+ "icon_button",
+ "icon",
+ "inset",
+ "popover",
+ "radio_group",
+ "scroll_area",
+ "select",
+ "separator",
+ "slider",
+ "switch",
+ "table",
+ "tabs",
+ "text_area",
+ "text_field",
+ "tooltip",
+]
diff --git a/reflex/components/radix/themes/components/alertdialog.py b/reflex/components/radix/themes/components/alertdialog.py
index 7a9edc8c6..221ab92e5 100644
--- a/reflex/components/radix/themes/components/alertdialog.py
+++ b/reflex/components/radix/themes/components/alertdialog.py
@@ -1,4 +1,5 @@
"""Interactive components provided by @radix-ui/themes."""
+from types import SimpleNamespace
from typing import Any, Dict, Literal
from reflex import el
@@ -91,3 +92,18 @@ class AlertDialogCancel(RadixThemesComponent):
"""
tag = "AlertDialog.Cancel"
+
+
+class AlertDialog(SimpleNamespace):
+ """AlertDialog components namespace."""
+
+ root = __call__ = staticmethod(AlertDialogRoot.create)
+ trigger = staticmethod(AlertDialogTrigger.create)
+ content = staticmethod(AlertDialogContent.create)
+ title = staticmethod(AlertDialogTitle.create)
+ description = staticmethod(AlertDialogDescription.create)
+ action = staticmethod(AlertDialogAction.create)
+ cancel = staticmethod(AlertDialogCancel.create)
+
+
+alert_dialog = AlertDialog()
diff --git a/reflex/components/radix/themes/components/alertdialog.pyi b/reflex/components/radix/themes/components/alertdialog.pyi
index c6c634a07..630fa894a 100644
--- a/reflex/components/radix/themes/components/alertdialog.pyi
+++ b/reflex/components/radix/themes/components/alertdialog.pyi
@@ -7,6 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
from reflex.vars import Var, BaseVar, ComputedVar
from reflex.event import EventChain, EventHandler, EventSpec
from reflex.style import Style
+from types import SimpleNamespace
from typing import Any, Dict, Literal
from reflex import el
from reflex.vars import Var
@@ -1106,3 +1107,160 @@ class AlertDialogCancel(RadixThemesComponent):
A new component instance.
"""
...
+
+class AlertDialog(SimpleNamespace):
+ root = staticmethod(AlertDialogRoot.create)
+ trigger = staticmethod(AlertDialogTrigger.create)
+ content = staticmethod(AlertDialogContent.create)
+ title = staticmethod(AlertDialogTitle.create)
+ description = staticmethod(AlertDialogDescription.create)
+ action = staticmethod(AlertDialogAction.create)
+ cancel = staticmethod(AlertDialogCancel.create)
+
+ @staticmethod
+ def __call__(
+ *children,
+ color: Optional[Union[Var[str], str]] = None,
+ color_scheme: Optional[
+ Union[
+ Var[
+ Literal[
+ "tomato",
+ "red",
+ "ruby",
+ "crimson",
+ "pink",
+ "plum",
+ "purple",
+ "violet",
+ "iris",
+ "indigo",
+ "blue",
+ "cyan",
+ "teal",
+ "jade",
+ "green",
+ "grass",
+ "brown",
+ "orange",
+ "sky",
+ "mint",
+ "lime",
+ "yellow",
+ "amber",
+ "gold",
+ "bronze",
+ "gray",
+ ]
+ ],
+ Literal[
+ "tomato",
+ "red",
+ "ruby",
+ "crimson",
+ "pink",
+ "plum",
+ "purple",
+ "violet",
+ "iris",
+ "indigo",
+ "blue",
+ "cyan",
+ "teal",
+ "jade",
+ "green",
+ "grass",
+ "brown",
+ "orange",
+ "sky",
+ "mint",
+ "lime",
+ "yellow",
+ "amber",
+ "gold",
+ "bronze",
+ "gray",
+ ],
+ ]
+ ] = None,
+ open: Optional[Union[Var[bool], bool]] = None,
+ style: Optional[Style] = None,
+ key: Optional[Any] = None,
+ id: Optional[Any] = None,
+ class_name: Optional[Any] = None,
+ autofocus: Optional[bool] = None,
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
+ on_blur: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_click: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_context_menu: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_double_click: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_focus: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mount: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_down: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_enter: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_leave: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_move: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_out: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_over: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_up: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_open_change: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_scroll: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_unmount: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ **props
+ ) -> "AlertDialogRoot":
+ """Create a new component instance.
+
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
+ other UI libraries for common names, like Text and Button.
+
+ Args:
+ *children: Child components.
+ color: map to CSS default color property.
+ color_scheme: map to radix color property.
+ open: The controlled open state of the dialog.
+ style: The style of the component.
+ key: A unique key for the component.
+ id: The id for the component.
+ class_name: The class name for the component.
+ autofocus: Whether the component should take the focus once the page is loaded
+ custom_attrs: custom attribute
+ **props: Component properties.
+
+ Returns:
+ A new component instance.
+ """
+ ...
+
+alert_dialog = AlertDialog()
diff --git a/reflex/components/radix/themes/components/aspectratio.py b/reflex/components/radix/themes/components/aspectratio.py
index 556666605..1b6847a18 100644
--- a/reflex/components/radix/themes/components/aspectratio.py
+++ b/reflex/components/radix/themes/components/aspectratio.py
@@ -13,3 +13,6 @@ class AspectRatio(RadixThemesComponent):
# The ratio of the width to the height of the element
ratio: Var[Union[float, int]]
+
+
+aspect_ratio = AspectRatio.create
diff --git a/reflex/components/radix/themes/components/aspectratio.pyi b/reflex/components/radix/themes/components/aspectratio.pyi
index b67bb9d09..4e73d8674 100644
--- a/reflex/components/radix/themes/components/aspectratio.pyi
+++ b/reflex/components/radix/themes/components/aspectratio.pyi
@@ -156,3 +156,5 @@ class AspectRatio(RadixThemesComponent):
A new component instance.
"""
...
+
+aspect_ratio = AspectRatio.create
diff --git a/reflex/components/radix/themes/components/avatar.py b/reflex/components/radix/themes/components/avatar.py
index 35664f4c6..2029c7ef1 100644
--- a/reflex/components/radix/themes/components/avatar.py
+++ b/reflex/components/radix/themes/components/avatar.py
@@ -36,3 +36,6 @@ class Avatar(RadixThemesComponent):
# The rendered fallback text
fallback: Var[str]
+
+
+avatar = Avatar.create
diff --git a/reflex/components/radix/themes/components/avatar.pyi b/reflex/components/radix/themes/components/avatar.pyi
index 635cea11e..5b8722d74 100644
--- a/reflex/components/radix/themes/components/avatar.pyi
+++ b/reflex/components/radix/themes/components/avatar.pyi
@@ -178,3 +178,5 @@ class Avatar(RadixThemesComponent):
A new component instance.
"""
...
+
+avatar = Avatar.create
diff --git a/reflex/components/radix/themes/components/badge.py b/reflex/components/radix/themes/components/badge.py
index 98145c3d0..f279ee0cf 100644
--- a/reflex/components/radix/themes/components/badge.py
+++ b/reflex/components/radix/themes/components/badge.py
@@ -30,3 +30,6 @@ class Badge(el.Span, RadixThemesComponent):
# Override theme radius for badge: "none" | "small" | "medium" | "large" | "full"
radius: Var[LiteralRadius]
+
+
+badge = Badge.create
diff --git a/reflex/components/radix/themes/components/badge.pyi b/reflex/components/radix/themes/components/badge.pyi
index 07b75e5a3..a60d397d2 100644
--- a/reflex/components/radix/themes/components/badge.pyi
+++ b/reflex/components/radix/themes/components/badge.pyi
@@ -233,3 +233,5 @@ class Badge(el.Span, RadixThemesComponent):
A new component instance.
"""
...
+
+badge = Badge.create
diff --git a/reflex/components/radix/themes/components/button.py b/reflex/components/radix/themes/components/button.py
index 4e17ee2d7..a9d681f8e 100644
--- a/reflex/components/radix/themes/components/button.py
+++ b/reflex/components/radix/themes/components/button.py
@@ -36,3 +36,6 @@ class Button(el.Button, RadixThemesComponent):
# Override theme radius for button: "none" | "small" | "medium" | "large" | "full"
radius: Var[LiteralRadius]
+
+
+button = Button.create
diff --git a/reflex/components/radix/themes/components/button.pyi b/reflex/components/radix/themes/components/button.pyi
index b72a0acfc..c1ece4f15 100644
--- a/reflex/components/radix/themes/components/button.pyi
+++ b/reflex/components/radix/themes/components/button.pyi
@@ -282,3 +282,5 @@ class Button(el.Button, RadixThemesComponent):
A new component instance.
"""
...
+
+button = Button.create
diff --git a/reflex/components/radix/themes/components/callout.py b/reflex/components/radix/themes/components/callout.py
index 884f55905..a388f423e 100644
--- a/reflex/components/radix/themes/components/callout.py
+++ b/reflex/components/radix/themes/components/callout.py
@@ -1,4 +1,5 @@
"""Interactive components provided by @radix-ui/themes."""
+from types import SimpleNamespace
from typing import Literal, Union
import reflex as rx
@@ -75,3 +76,15 @@ class Callout(CalloutRoot):
CalloutText.create(text),
**props,
)
+
+
+class CalloutNamespace(SimpleNamespace):
+ """Callout components namespace."""
+
+ root = staticmethod(CalloutRoot.create)
+ icon = staticmethod(CalloutIcon.create)
+ text = staticmethod(CalloutText.create)
+ __call__ = staticmethod(Callout.create)
+
+
+callout = CalloutNamespace()
diff --git a/reflex/components/radix/themes/components/callout.pyi b/reflex/components/radix/themes/components/callout.pyi
index 262816d37..c60377016 100644
--- a/reflex/components/radix/themes/components/callout.pyi
+++ b/reflex/components/radix/themes/components/callout.pyi
@@ -7,6 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload
from reflex.vars import Var, BaseVar, ComputedVar
from reflex.event import EventChain, EventHandler, EventSpec
from reflex.style import Style
+from types import SimpleNamespace
from typing import Literal, Union
import reflex as rx
from reflex import el
@@ -861,3 +862,225 @@ class Callout(CalloutRoot):
The callout component.
"""
...
+
+class CalloutNamespace(SimpleNamespace):
+ root = staticmethod(CalloutRoot.create)
+ icon = staticmethod(CalloutIcon.create)
+ text = staticmethod(CalloutText.create)
+
+ @staticmethod
+ def __call__(
+ *children,
+ text: Optional[Union[Var[str], str]] = None,
+ icon: Optional[Union[Var[str], str]] = None,
+ as_child: Optional[Union[Var[bool], bool]] = None,
+ size: Optional[
+ Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
+ ] = None,
+ variant: Optional[
+ Union[
+ Var[Literal["soft", "surface", "outline"]],
+ Literal["soft", "surface", "outline"],
+ ]
+ ] = None,
+ color_scheme: Optional[
+ Union[
+ Var[
+ Literal[
+ "tomato",
+ "red",
+ "ruby",
+ "crimson",
+ "pink",
+ "plum",
+ "purple",
+ "violet",
+ "iris",
+ "indigo",
+ "blue",
+ "cyan",
+ "teal",
+ "jade",
+ "green",
+ "grass",
+ "brown",
+ "orange",
+ "sky",
+ "mint",
+ "lime",
+ "yellow",
+ "amber",
+ "gold",
+ "bronze",
+ "gray",
+ ]
+ ],
+ Literal[
+ "tomato",
+ "red",
+ "ruby",
+ "crimson",
+ "pink",
+ "plum",
+ "purple",
+ "violet",
+ "iris",
+ "indigo",
+ "blue",
+ "cyan",
+ "teal",
+ "jade",
+ "green",
+ "grass",
+ "brown",
+ "orange",
+ "sky",
+ "mint",
+ "lime",
+ "yellow",
+ "amber",
+ "gold",
+ "bronze",
+ "gray",
+ ],
+ ]
+ ] = None,
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
+ access_key: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ auto_capitalize: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ content_editable: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ context_menu: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
+ draggable: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ enter_key_hint: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ hidden: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ input_mode: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ item_prop: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
+ role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
+ slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
+ spell_check: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ tab_index: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ title: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ translate: Optional[
+ Union[Var[Union[str, int, bool]], Union[str, int, bool]]
+ ] = None,
+ style: Optional[Style] = None,
+ key: Optional[Any] = None,
+ id: Optional[Any] = None,
+ class_name: Optional[Any] = None,
+ autofocus: Optional[bool] = None,
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
+ on_blur: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_click: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_context_menu: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_double_click: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_focus: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mount: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_down: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_enter: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_leave: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_move: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_out: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_over: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_mouse_up: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_scroll: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ on_unmount: Optional[
+ Union[EventHandler, EventSpec, list, function, BaseVar]
+ ] = None,
+ **props
+ ) -> "Callout":
+ """Create a callout component.
+
+ Args:
+ text: The text of the callout.
+ text: The text of the callout.
+ icon: The icon of the callout.
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
+ size: Size "1" - "3"
+ variant: Variant of button: "soft" | "surface" | "outline"
+ color_scheme: Override theme color for button
+ high_contrast: Whether to render the button with higher contrast color against background
+ access_key: Provides a hint for generating a keyboard shortcut for the current element.
+ auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
+ content_editable: Indicates whether the element's content is editable.
+ context_menu: Defines the ID of a