6361 lines
214 KiB
Python
6361 lines
214 KiB
Python
"""Stub file for reflex/components/el/elements/media.py"""
|
|
|
|
# ------------------- DO NOT EDIT ----------------------
|
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
# ------------------------------------------------------
|
|
from typing import Any, Literal, Optional, overload
|
|
|
|
from reflex import ComponentNamespace
|
|
from reflex.constants.colors import Color
|
|
from reflex.event import EventType
|
|
from reflex.style import Style
|
|
from reflex.vars.base import Var
|
|
|
|
from .base import BaseHTML
|
|
|
|
class Area(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
alt: Var[str] | str | None = None,
|
|
coords: Var[str] | str | None = None,
|
|
download: Var[bool | str] | bool | str | None = None,
|
|
href: Var[str] | str | None = None,
|
|
href_lang: Var[str] | str | None = None,
|
|
media: Var[str] | str | None = None,
|
|
referrer_policy: Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
]
|
|
| None = None,
|
|
rel: Var[str] | str | None = None,
|
|
shape: Var[str] | str | None = None,
|
|
target: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Area":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
alt: Alternate text for the area, used for accessibility
|
|
coords: Coordinates to define the shape of the area
|
|
download: Specifies that the target will be downloaded when clicked
|
|
href: Hyperlink reference for the area
|
|
href_lang: Language of the linked resource
|
|
media: Specifies what media/device the linked resource is optimized for
|
|
referrer_policy: Specifies which referrer information to send with the link
|
|
rel: Specifies the relationship of the target object to the link object
|
|
shape: Defines the shape of the area (rectangle, circle, polygon)
|
|
target: Specifies where to open the linked document
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
CrossOrigin = Literal["anonymous", "use-credentials", ""]
|
|
|
|
class Audio(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
auto_play: Var[bool] | bool | None = None,
|
|
controls: Var[bool] | bool | None = None,
|
|
cross_origin: Literal["", "anonymous", "use-credentials"]
|
|
| Var[Literal["", "anonymous", "use-credentials"]]
|
|
| None = None,
|
|
loop: Var[bool] | bool | None = None,
|
|
muted: Var[bool] | bool | None = None,
|
|
preload: Var[str] | str | None = None,
|
|
src: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Audio":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
auto_play: Specifies that the audio will start playing as soon as it is ready
|
|
controls: Displays the standard audio controls
|
|
cross_origin: Configures the CORS requests for the element
|
|
loop: Specifies that the audio will loop
|
|
muted: Indicates whether the audio is muted by default
|
|
preload: Specifies how the audio file should be preloaded
|
|
src: URL of the audio to play
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
ImageDecoding = Literal["async", "auto", "sync"]
|
|
ImageLoading = Literal["eager", "lazy"]
|
|
|
|
class Img(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
alt: Var[str] | str | None = None,
|
|
cross_origin: Literal["", "anonymous", "use-credentials"]
|
|
| Var[Literal["", "anonymous", "use-credentials"]]
|
|
| None = None,
|
|
decoding: Literal["async", "auto", "sync"]
|
|
| Var[Literal["async", "auto", "sync"]]
|
|
| None = None,
|
|
loading: Literal["eager", "lazy"] | Var[Literal["eager", "lazy"]] | None = None,
|
|
referrer_policy: Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
]
|
|
| None = None,
|
|
sizes: Var[str] | str | None = None,
|
|
src: Any | Var[Any] | None = None,
|
|
src_set: Var[str] | str | None = None,
|
|
use_map: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Img":
|
|
"""Override create method to apply source attribute to value if user fails to pass in attribute.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
alt: Alternative text for the image
|
|
cross_origin: Configures the CORS requests for the image
|
|
decoding: How the image should be decoded
|
|
loading: Specifies the loading behavior of the image
|
|
referrer_policy: Referrer policy for the image
|
|
sizes: Sizes of the image for different layouts
|
|
src: URL of the image to display
|
|
src_set: A set of source sizes and URLs for responsive images
|
|
use_map: The name of the map to use with the image
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Map(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
name: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Map":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
name: Name of the map, referenced by the 'usemap' attribute in 'img' and 'object' elements
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Track(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
default: Var[bool] | bool | None = None,
|
|
kind: Var[str] | str | None = None,
|
|
label: Var[str] | str | None = None,
|
|
src: Var[str] | str | None = None,
|
|
src_lang: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Track":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
default: Indicates that the track should be enabled unless the user's preferences indicate otherwise
|
|
kind: Specifies the kind of text track
|
|
label: Title of the text track, used by the browser when listing available text tracks
|
|
src: URL of the track file
|
|
src_lang: Language of the track text data
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Video(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
auto_play: Var[bool] | bool | None = None,
|
|
controls: Var[bool] | bool | None = None,
|
|
cross_origin: Literal["", "anonymous", "use-credentials"]
|
|
| Var[Literal["", "anonymous", "use-credentials"]]
|
|
| None = None,
|
|
loop: Var[bool] | bool | None = None,
|
|
muted: Var[bool] | bool | None = None,
|
|
plays_inline: Var[bool] | bool | None = None,
|
|
poster: Var[str] | str | None = None,
|
|
preload: Var[str] | str | None = None,
|
|
src: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Video":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
auto_play: Specifies that the video will start playing as soon as it is ready
|
|
controls: Displays the standard video controls
|
|
cross_origin: Configures the CORS requests for the video
|
|
loop: Specifies that the video will loop
|
|
muted: Indicates whether the video is muted by default
|
|
plays_inline: Indicates that the video should play 'inline', inside its element's playback area
|
|
poster: URL of an image to show while the video is downloading, or until the user hits the play button
|
|
preload: Specifies how the video file should be preloaded
|
|
src: URL of the video to play
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Embed(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
src: Var[str] | str | None = None,
|
|
type: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Embed":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
src: URL of the embedded content
|
|
type: Media type of the embedded content
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Iframe(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
allow: Var[str] | str | None = None,
|
|
loading: Literal["eager", "lazy"] | Var[Literal["eager", "lazy"]] | None = None,
|
|
name: Var[str] | str | None = None,
|
|
referrer_policy: Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"",
|
|
"no-referrer",
|
|
"no-referrer-when-downgrade",
|
|
"origin",
|
|
"origin-when-cross-origin",
|
|
"same-origin",
|
|
"strict-origin",
|
|
"strict-origin-when-cross-origin",
|
|
"unsafe-url",
|
|
]
|
|
]
|
|
| None = None,
|
|
sandbox: Var[str] | str | None = None,
|
|
src: Var[str] | str | None = None,
|
|
src_doc: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Iframe":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
allow: Permissions policy for the iframe
|
|
loading: Specifies the loading behavior of the iframe
|
|
name: Name of the iframe, used as a target for hyperlinks and forms
|
|
referrer_policy: Referrer policy for the iframe
|
|
sandbox: Security restrictions for the content in the iframe
|
|
src: URL of the document to display in the iframe
|
|
src_doc: HTML content to embed directly within the iframe
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Object(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
data: Var[str] | str | None = None,
|
|
form: Var[str] | str | None = None,
|
|
name: Var[str] | str | None = None,
|
|
type: Var[str] | str | None = None,
|
|
use_map: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Object":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
data: URL of the data to be used by the object
|
|
form: Associates the object with a form element
|
|
name: Name of the object, used for scripting or as a target for forms and links
|
|
type: Media type of the data specified in the data attribute
|
|
use_map: Name of an image map to use with the object
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Picture(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Picture":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Portal(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Portal":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Source(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
media: Var[str] | str | None = None,
|
|
sizes: Var[str] | str | None = None,
|
|
src: Var[str] | str | None = None,
|
|
src_set: Var[str] | str | None = None,
|
|
type: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Source":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
media: Media query indicating what device the linked resource is optimized for
|
|
sizes: Sizes of the source for different layouts
|
|
src: URL of the media file or an image for the element to use
|
|
src_set: A set of source sizes and URLs for responsive images
|
|
type: Media type of the source
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Svg(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
width: Var[int | str] | int | str | None = None,
|
|
height: Var[int | str] | int | str | None = None,
|
|
xmlns: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Svg":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
width: The width of the svg.
|
|
height: The height of the svg.
|
|
xmlns: The XML namespace declaration.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Text(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
x: Var[int | str] | int | str | None = None,
|
|
y: Var[int | str] | int | str | None = None,
|
|
dx: Var[int | str] | int | str | None = None,
|
|
dy: Var[int | str] | int | str | None = None,
|
|
rotate: Var[int | str] | int | str | None = None,
|
|
length_adjust: Var[str] | str | None = None,
|
|
text_length: Var[int | str] | int | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Text":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
x: The x coordinate of the starting point of the text baseline.
|
|
y: The y coordinate of the starting point of the text baseline.
|
|
dx: Shifts the text position horizontally from a previous text element.
|
|
dy: Shifts the text position vertically from a previous text element.
|
|
rotate: Rotates orientation of each individual glyph.
|
|
length_adjust: How the text is stretched or compressed to fit the width defined by the text_length attribute.
|
|
text_length: A width that the text should be scaled to fit.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Line(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
x1: Var[int | str] | int | str | None = None,
|
|
x2: Var[int | str] | int | str | None = None,
|
|
y1: Var[int | str] | int | str | None = None,
|
|
y2: Var[int | str] | int | str | None = None,
|
|
path_length: Var[int] | int | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Line":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
x1: The x-axis coordinate of the line starting point.
|
|
x2: The x-axis coordinate of the the line ending point.
|
|
y1: The y-axis coordinate of the line starting point.
|
|
y2: The y-axis coordinate of the the line ending point.
|
|
path_length: The total path length, in user units.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Circle(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
cx: Var[int | str] | int | str | None = None,
|
|
cy: Var[int | str] | int | str | None = None,
|
|
r: Var[int | str] | int | str | None = None,
|
|
path_length: Var[int] | int | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Circle":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
cx: The x-axis coordinate of the center of the circle.
|
|
cy: The y-axis coordinate of the center of the circle.
|
|
r: The radius of the circle.
|
|
path_length: The total length for the circle's circumference, in user units.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Ellipse(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
cx: Var[int | str] | int | str | None = None,
|
|
cy: Var[int | str] | int | str | None = None,
|
|
rx: Var[int | str] | int | str | None = None,
|
|
ry: Var[int | str] | int | str | None = None,
|
|
path_length: Var[int] | int | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Ellipse":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
cx: The x position of the center of the ellipse.
|
|
cy: The y position of the center of the ellipse.
|
|
rx: The radius of the ellipse on the x axis.
|
|
ry: The radius of the ellipse on the y axis.
|
|
path_length: The total length for the ellipse's circumference, in user units.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Rect(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
x: Var[int | str] | int | str | None = None,
|
|
y: Var[int | str] | int | str | None = None,
|
|
width: Var[int | str] | int | str | None = None,
|
|
height: Var[int | str] | int | str | None = None,
|
|
rx: Var[int | str] | int | str | None = None,
|
|
ry: Var[int | str] | int | str | None = None,
|
|
path_length: Var[int] | int | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Rect":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
x: The x coordinate of the rect.
|
|
y: The y coordinate of the rect.
|
|
width: The width of the rect
|
|
height: The height of the rect.
|
|
rx: The horizontal corner radius of the rect. Defaults to ry if it is specified.
|
|
ry: The vertical corner radius of the rect. Defaults to rx if it is specified.
|
|
path_length: The total length of the rectangle's perimeter, in user units.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Polygon(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
points: Var[str] | str | None = None,
|
|
path_length: Var[int] | int | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Polygon":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
points: defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon.
|
|
path_length: This prop lets specify the total length for the path, in user units.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Defs(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Defs":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class LinearGradient(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
gradient_units: Var[bool | str] | bool | str | None = None,
|
|
gradient_transform: Var[bool | str] | bool | str | None = None,
|
|
spread_method: Var[bool | str] | bool | str | None = None,
|
|
x1: Var[float | int | str] | float | int | str | None = None,
|
|
x2: Var[float | int | str] | float | int | str | None = None,
|
|
y1: Var[float | int | str] | float | int | str | None = None,
|
|
y2: Var[float | int | str] | float | int | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "LinearGradient":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
gradient_units: Units for the gradient.
|
|
gradient_transform: Transform applied to the gradient.
|
|
spread_method: Method used to spread the gradient.
|
|
x1: X coordinate of the starting point of the gradient.
|
|
x2: X coordinate of the ending point of the gradient.
|
|
y1: Y coordinate of the starting point of the gradient.
|
|
y2: Y coordinate of the ending point of the gradient.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class RadialGradient(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
cx: Var[float | int | str] | float | int | str | None = None,
|
|
cy: Var[float | int | str] | float | int | str | None = None,
|
|
fr: Var[float | int | str] | float | int | str | None = None,
|
|
fx: Var[float | int | str] | float | int | str | None = None,
|
|
fy: Var[float | int | str] | float | int | str | None = None,
|
|
gradient_units: Var[bool | str] | bool | str | None = None,
|
|
gradient_transform: Var[bool | str] | bool | str | None = None,
|
|
r: Var[float | int | str] | float | int | str | None = None,
|
|
spread_method: Var[bool | str] | bool | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "RadialGradient":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
cx: The x coordinate of the end circle of the radial gradient.
|
|
cy: The y coordinate of the end circle of the radial gradient.
|
|
fr: The radius of the start circle of the radial gradient.
|
|
fx: The x coordinate of the start circle of the radial gradient.
|
|
fy: The y coordinate of the start circle of the radial gradient.
|
|
gradient_units: Units for the gradient.
|
|
gradient_transform: Transform applied to the gradient.
|
|
r: The radius of the end circle of the radial gradient.
|
|
spread_method: Method used to spread the gradient.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Stop(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
offset: Var[float | int | str] | float | int | str | None = None,
|
|
stop_color: Color | Var[Color | bool | str] | bool | str | None = None,
|
|
stop_opacity: Var[bool | float | int | str]
|
|
| bool
|
|
| float
|
|
| int
|
|
| str
|
|
| None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Stop":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
offset: Offset of the gradient stop.
|
|
stop_color: Color of the gradient stop.
|
|
stop_opacity: Opacity of the gradient stop.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class Path(BaseHTML):
|
|
@overload
|
|
@classmethod
|
|
def create( # type: ignore
|
|
cls,
|
|
*children,
|
|
d: Var[float | int | str] | float | int | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Path":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
d: Defines the shape of the path.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
class SVG(ComponentNamespace):
|
|
text = staticmethod(Text.create)
|
|
line = staticmethod(Line.create)
|
|
circle = staticmethod(Circle.create)
|
|
ellipse = staticmethod(Ellipse.create)
|
|
rect = staticmethod(Rect.create)
|
|
polygon = staticmethod(Polygon.create)
|
|
path = staticmethod(Path.create)
|
|
stop = staticmethod(Stop.create)
|
|
linear_gradient = staticmethod(LinearGradient.create)
|
|
radial_gradient = staticmethod(RadialGradient.create)
|
|
defs = staticmethod(Defs.create)
|
|
|
|
@staticmethod
|
|
def __call__(
|
|
*children,
|
|
width: Var[int | str] | int | str | None = None,
|
|
height: Var[int | str] | int | str | None = None,
|
|
xmlns: Var[str] | str | None = None,
|
|
access_key: Var[str] | str | None = None,
|
|
auto_capitalize: Literal[
|
|
"characters", "none", "off", "on", "sentences", "words"
|
|
]
|
|
| Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
|
|
| None = None,
|
|
content_editable: Literal["inherit", "plaintext-only", False, True]
|
|
| Var[Literal["inherit", "plaintext-only", False, True]]
|
|
| None = None,
|
|
context_menu: Var[str] | str | None = None,
|
|
dir: Var[str] | str | None = None,
|
|
draggable: Var[bool] | bool | None = None,
|
|
enter_key_hint: Literal[
|
|
"done", "enter", "go", "next", "previous", "search", "send"
|
|
]
|
|
| Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
|
|
| None = None,
|
|
hidden: Var[bool] | bool | None = None,
|
|
input_mode: Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"decimal", "email", "none", "numeric", "search", "tel", "text", "url"
|
|
]
|
|
]
|
|
| None = None,
|
|
item_prop: Var[str] | str | None = None,
|
|
lang: Var[str] | str | None = None,
|
|
role: Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
| Var[
|
|
Literal[
|
|
"alert",
|
|
"alertdialog",
|
|
"application",
|
|
"article",
|
|
"banner",
|
|
"button",
|
|
"cell",
|
|
"checkbox",
|
|
"columnheader",
|
|
"combobox",
|
|
"complementary",
|
|
"contentinfo",
|
|
"definition",
|
|
"dialog",
|
|
"directory",
|
|
"document",
|
|
"feed",
|
|
"figure",
|
|
"form",
|
|
"grid",
|
|
"gridcell",
|
|
"group",
|
|
"heading",
|
|
"img",
|
|
"link",
|
|
"list",
|
|
"listbox",
|
|
"listitem",
|
|
"log",
|
|
"main",
|
|
"marquee",
|
|
"math",
|
|
"menu",
|
|
"menubar",
|
|
"menuitem",
|
|
"menuitemcheckbox",
|
|
"menuitemradio",
|
|
"navigation",
|
|
"none",
|
|
"note",
|
|
"option",
|
|
"presentation",
|
|
"progressbar",
|
|
"radio",
|
|
"radiogroup",
|
|
"region",
|
|
"row",
|
|
"rowgroup",
|
|
"rowheader",
|
|
"scrollbar",
|
|
"search",
|
|
"searchbox",
|
|
"separator",
|
|
"slider",
|
|
"spinbutton",
|
|
"status",
|
|
"switch",
|
|
"tab",
|
|
"table",
|
|
"tablist",
|
|
"tabpanel",
|
|
"term",
|
|
"textbox",
|
|
"timer",
|
|
"toolbar",
|
|
"tooltip",
|
|
"tree",
|
|
"treegrid",
|
|
"treeitem",
|
|
]
|
|
]
|
|
| None = None,
|
|
slot: Var[str] | str | None = None,
|
|
spell_check: Var[bool] | bool | None = None,
|
|
tab_index: Var[int] | int | None = None,
|
|
title: Var[str] | str | None = None,
|
|
style: Style | None = None,
|
|
key: Any | None = None,
|
|
id: Any | None = None,
|
|
class_name: Any | None = None,
|
|
autofocus: bool | None = None,
|
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
on_blur: Optional[EventType[()]] = None,
|
|
on_click: Optional[EventType[()]] = None,
|
|
on_context_menu: Optional[EventType[()]] = None,
|
|
on_double_click: Optional[EventType[()]] = None,
|
|
on_focus: Optional[EventType[()]] = None,
|
|
on_mount: Optional[EventType[()]] = None,
|
|
on_mouse_down: Optional[EventType[()]] = None,
|
|
on_mouse_enter: Optional[EventType[()]] = None,
|
|
on_mouse_leave: Optional[EventType[()]] = None,
|
|
on_mouse_move: Optional[EventType[()]] = None,
|
|
on_mouse_out: Optional[EventType[()]] = None,
|
|
on_mouse_over: Optional[EventType[()]] = None,
|
|
on_mouse_up: Optional[EventType[()]] = None,
|
|
on_scroll: Optional[EventType[()]] = None,
|
|
on_unmount: Optional[EventType[()]] = None,
|
|
**props,
|
|
) -> "Svg":
|
|
"""Create the component.
|
|
|
|
Args:
|
|
*children: The children of the component.
|
|
width: The width of the svg.
|
|
height: The height of the svg.
|
|
xmlns: The XML namespace declaration.
|
|
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 <menu> element which will serve as the element's context menu.
|
|
dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
draggable: Defines whether the element can be dragged.
|
|
enter_key_hint: Hints what media types the media element is able to play.
|
|
hidden: Defines whether the element is hidden.
|
|
input_mode: Defines the type of the element.
|
|
item_prop: Defines the name of the element for metadata purposes.
|
|
lang: Defines the language used in the element.
|
|
role: Defines the role of the element.
|
|
slot: Assigns a slot in a shadow DOM shadow tree to an element.
|
|
spell_check: Defines whether the element may be checked for spelling errors.
|
|
tab_index: Defines the position of the current element in the tabbing order.
|
|
title: Defines a tooltip for the element.
|
|
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: The props of the component.
|
|
|
|
Returns:
|
|
The component.
|
|
"""
|
|
...
|
|
|
|
area = Area.create
|
|
audio = Audio.create
|
|
image = img = Img.create
|
|
map = Map.create
|
|
track = Track.create
|
|
video = Video.create
|
|
embed = Embed.create
|
|
iframe = Iframe.create
|
|
object = Object.create
|
|
picture = Picture.create
|
|
portal = Portal.create
|
|
source = Source.create
|
|
svg = SVG()
|