reflex/reflex/components/el/elements/other.py
Thomas Brandého fb444ad112
add ERA rules to detect commented out code (#4472)
* 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
2024-12-11 18:26:44 -08:00

80 lines
1.4 KiB
Python

"""Other classes."""
from typing import Union
from reflex.vars.base import Var
from .base import BaseHTML
class Details(BaseHTML):
"""Display the details element."""
tag = "details"
# Indicates whether the details will be visible (expanded) to the user
open: Var[Union[str, int, bool]]
class Dialog(BaseHTML):
"""Display the dialog element."""
tag = "dialog"
# Indicates whether the dialog is active and can be interacted with
open: Var[Union[str, int, bool]]
class Summary(BaseHTML):
"""Display the summary element.
Used as a summary or caption for a <details> element.
"""
tag = "summary"
class Slot(BaseHTML):
"""Display the slot element.
Used as a placeholder inside a web component.
"""
tag = "slot"
class Template(BaseHTML):
"""Display the template element.
Used for declaring fragments of HTML that can be cloned and inserted in the document.
"""
tag = "template"
class Math(BaseHTML):
"""Display the math element.
Represents a mathematical expression.
"""
tag = "math"
class Html(BaseHTML):
"""Display the html element."""
tag = "html"
# Specifies the URL of the document's cache manifest (obsolete in HTML5)
manifest: Var[Union[str, int, bool]]
details = Details.create
dialog = Dialog.create
summary = Summary.create
slot = Slot.create
template = Template.create
math = Math.create
html = Html.create