vuer.schemas.html_components
omit
Omit keys from dictionary that match any of the glob patterns.
:param d: Dictionary to filter :param patterns: Glob patterns to match keys against (e.g., "_*", "tag") :return: New dictionary with matching keys removed
Example::
omit({"foo": 1, "bar": 2, "tag": 3}, "*", "tag")
Returns: {"foo": 1}
Element
Base class for all elements
Element.init
BlockElement
BlockElement.init
Inherited members
tag— fromvuer.schemas.html_components.Element
Iframe
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
AutoScroll
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
Markdown
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
Page
A Page is an element that contains other elements. It is represented by a div element in the DOM.
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
div
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
InputBox
An InputBox is an element that allows the user to input text. It is represented by an input element in the DOM.
Inherited members
__init__— fromvuer.schemas.html_components.Element
Header1
A Text element is an element that displays text. It is represented by a text, or p element in the DOM.
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
Header2
Header 2
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
Header3
Header 2
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
Paragraph
A Text element is an element that displays text. It is represented by a text, or p element in the DOM.
Inherited members
children— fromvuer.schemas.html_components.BlockElement__init__— fromvuer.schemas.html_components.BlockElement
span
A Text element is an element that displays text. It is represented by a text, or p element in the DOM.
span.init
Bold
Inherited members
tag— fromvuer.schemas.html_components.span__init__— fromvuer.schemas.html_components.span
Italic
Inherited members
tag— fromvuer.schemas.html_components.span__init__— fromvuer.schemas.html_components.span
Link
Inherited members
__init__— fromvuer.schemas.html_components.span
Button
A Button element is an element that allows the user to click on it. It is represented by a button element in the DOM.
Inherited members
__init__— fromvuer.schemas.html_components.Element
Slider
A Slider element is an element that allows the user to slide a value. It is represented by a slider element in the DOM.
Args: :param min: Minimum value of the slider :param max: Maximum value of the slider :param step: Step size of the slider :param value: Initial value of the slider :param kwargs:
Inherited members
__init__— fromvuer.schemas.html_components.Element
Img
An Image element that displays an image in the DOM.
Supports multiple input formats: URL strings, local file paths, PIL Images, and numpy arrays. The image data is automatically converted to binary for efficient transfer.
:param data: Image data as a file path (str), numpy array, or PIL Image.
- str: Local file path, will be read and converted to binary.
- np.ndarray: Image array (H, W, C). If dtype is not uint8, values are scaled by 255 and converted.
- PIL.Image: PIL Image object, saved to binary format.
:type data: str | np.ndarray | PIL.Image.Image, optional
:param src: Direct URL or binary data. Cannot be used together with
data. :type src: str | bytes, optional :param format: Output format for encoding. Defaults to "png". :type format: "png" | "jpeg" | "b64png" | "b64jpeg", optional :param quality: JPEG quality (1-100). Only used with jpeg format. :type quality: int, optional
.. note::
When used in multiple inheritance (e.g., ImagePlane(Img, SceneElement)),
Img.__init__ takes precedence due to Python's MRO (Method Resolution Order).
This ensures image data is properly processed before being passed to parent classes.
Example Usage::
from vuer.schemas import Img import numpy as np from PIL import Image as PILImage
From URL (pass directly to src)
Img(src="https://example.com/image.png", key="url-img")
From local file path (reads and converts to binary)
Img("/path/to/image.png", key="file-img")
From numpy array (H, W, C), uint8 or float [0-1]
img_array = np.random.randint(0, 255, (480, 640, 3), dtype=np.uint8) Img(img_array, key="numpy-img")
From PIL Image
pil_img = PILImage.open("/path/to/image.png") Img(pil_img, key="pil-img")
With JPEG format and quality
Img(img_array, format="jpeg", quality=85, key="jpeg-img")
Img.init
Public imports
These symbols are available from this module. Their definitions are documented in the linked modules.
Url—vuer.types.Url