
* add eradicate rules for commented out code * remove output change * fix pyi messed up indent * fix pyi again * fix layout docstring * fix pyi_generator to remove commented out props from docs * fix pyi_generator and regenerate some pyi * fix double strip * update all pyi * try to fix stuff in pyi_gen * whatever * remove that maybe? i don't know * fix that shit? * fix more shit, idk * better not see you ever again, extra line
59 lines
1.9 KiB
Python
59 lines
1.9 KiB
Python
"""Base classes."""
|
|
|
|
from typing import Union
|
|
|
|
from reflex.components.el.element import Element
|
|
from reflex.vars.base import Var
|
|
|
|
|
|
class BaseHTML(Element):
|
|
"""Base class for common attributes."""
|
|
|
|
# Provides a hint for generating a keyboard shortcut for the current element.
|
|
access_key: Var[Union[str, int, bool]]
|
|
|
|
# Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
|
auto_capitalize: Var[Union[str, int, bool]]
|
|
|
|
# Indicates whether the element's content is editable.
|
|
content_editable: Var[Union[str, int, bool]]
|
|
|
|
# Defines the ID of a <menu> element which will serve as the element's context menu.
|
|
context_menu: Var[Union[str, int, bool]]
|
|
|
|
# Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
|
|
dir: Var[Union[str, int, bool]]
|
|
|
|
# Defines whether the element can be dragged.
|
|
draggable: Var[Union[str, int, bool]]
|
|
|
|
# Hints what media types the media element is able to play.
|
|
enter_key_hint: Var[Union[str, int, bool]]
|
|
|
|
# Defines whether the element is hidden.
|
|
hidden: Var[Union[str, int, bool]]
|
|
|
|
# Defines the type of the element.
|
|
input_mode: Var[Union[str, int, bool]]
|
|
|
|
# Defines the name of the element for metadata purposes.
|
|
item_prop: Var[Union[str, int, bool]]
|
|
|
|
# Defines the language used in the element.
|
|
lang: Var[Union[str, int, bool]]
|
|
|
|
# Defines the role of the element.
|
|
role: Var[Union[str, int, bool]]
|
|
|
|
# Assigns a slot in a shadow DOM shadow tree to an element.
|
|
slot: Var[Union[str, int, bool]]
|
|
|
|
# Defines whether the element may be checked for spelling errors.
|
|
spell_check: Var[Union[str, int, bool]]
|
|
|
|
# Defines the position of the current element in the tabbing order.
|
|
tab_index: Var[Union[str, int, bool]]
|
|
|
|
# Defines a tooltip for the element.
|
|
title: Var[Union[str, int, bool]]
|