12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- """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
|