Common
Creates an HTML image element. Args: src (str): The source URL of the image. alt (str): The alternate text for the image. width (str): The width of the image. height (str): The height of the image. classname (str): The class name for the image. Returns: An HTML img element with the specified attributes.
Source code in zenaura/ui/common.py
Creates an HTML h2 element. Args: text (str): The text content of the header. class_name (str): The class name for the header. Returns: An HTML h2 element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates an HTML h1 element. Args: text (str): The text content of the header. class_names (str): The class names for the header. Returns: An HTML h1 element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates an HTML section element. Args: children (list): The child elements of the section. class_name (str): The class name for the section. Returns: An HTML section element with the specified attributes and children.
Source code in zenaura/ui/common.py
Creates an HTML ordered list (ol) element. Args: children (list): The child li elements. attrs (dict): The attributes for the ol element. Returns: An HTML ol element with the specified attributes and children.
Source code in zenaura/ui/common.py
Creates an HTML list item (li) element. Args: child (element): The child element of the li. attrs (dict): The attributes for the li element. Returns: An HTML li element with the specified attributes and child.
Source code in zenaura/ui/common.py
Creates an HTML anchor (a) element. Args: child (element): The child element of the a. attrs (dict): The attributes for the a element. Returns: An HTML a element with the specified attributes and child.
Source code in zenaura/ui/common.py
Creates an HTML dialog element. Args: children (list): The child elements of the dialog. attrs (dict): The attributes for the dialog element. Returns: An HTML dialog element with the specified attributes and children.
Source code in zenaura/ui/common.py
Creates an HTML paragraph (p) element. Args: text (str): The text content of the paragraph. class_name (str, optional): The class name for the paragraph. Returns: An HTML p element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates an HTML div element. Args: class_name (str): The class name for the div. children (list): The child elements of the div. Returns: An HTML div element with the specified attributes and children.
Source code in zenaura/ui/common.py
Creates an HTML button element. Args: class_name (str): The class name for the button. text (str): The text content of the button. onclick_handler (str, optional): The JavaScript function to call on click. name (str, optional): The name of the button. attrs (dict): Additional attributes for the button. Returns: An HTML button element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates an HTML button element with specified attributes and children. Args: class_name (str): The class name for the button. attrs (dict): Additional attributes for the button. children (list): The child elements of the button. onclick_handler (str, optional): The JavaScript function to call on click. name (str, optional): The name of the button. Returns: An HTML button element with the specified attributes and children.
Source code in zenaura/ui/common.py
Creates a navigation item with text. Args: href (str): The URL the item links to. text (str): The text content of the item. class_names (str): The class names for the item. click (str, optional): The JavaScript function to call on click. Returns: An HTML a element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates a navigation item with text and a name attribute. Args: href (str): The URL the item links to. text (str): The text content of the item. class_names (str): The class names for the item. click (str, optional): The JavaScript function to call on click. Returns: An HTML a element with the specified attributes, text, and name.
Source code in zenaura/ui/common.py
Creates an HTML anchor (a) element. Args: href (str): The URL the link points to. text (str): The text content of the link. class_names (str): The class names for the link. target (str): The target attribute for the link. Returns: An HTML a element with the specified attributes and text.
Source code in zenaura/ui/common.py
Creates a navigation item with an icon. Args: href (str): The URL the item links to. img (element): The image element for the icon. class_names (str): The class names for the item. Returns: An HTML a element with the specified attributes and icon.
Source code in zenaura/ui/common.py
Creates an SVG path element.
Args:
linecap (str): The stroke-linecap attribute.
linejoin (str): The stroke-linejoin attribute.
d (
str): The path data. Returns: An SVG path element with the specified attributes.
Source code in zenaura/ui/common.py
Creates an SVG element. Args: class_name (str): The class name for the SVG. fill (str): The fill attribute. viewBox (str): The viewBox attribute. stroke (str): The stroke attribute. path (element): The path element inside the SVG. stroke_width (str, optional): The stroke-width attribute. Returns: An SVG element with the specified attributes and path.
Source code in zenaura/ui/common.py
Creates an HTML span element. Args: class_name (str): The class name for the span. text (str, optional): The text content of the span. Returns: An HTML span element with the specified attributes and text.