You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
411 B

from pathlib import Path
from typing import Union
from .mixins.source_element import SourceElement
class Image(SourceElement, component='image.js'):
def __init__(self, source: Union[str, Path] = '') -> None:
"""Image
Displays an image.
:param source: the source of the image; can be a URL, local file path or a base64 string
"""
super().__init__(source=source)