Skip to content

SVG

In the spirit of helping our users, every Air SVG Tag has copious documentation—enough that sometimes it breaks the documentation build process. Therefore, Air SVG Tag that directly correspond to their SVG equivalents can be found in smaller, easier-to-compile pages.

What remains on this page are core Air SVG Tag that either have great utility or are base classes for other tags.

Air is proud to provide first class SVG support. The entire SVG specification is supported.

CaseTag

CaseTag(*children, **kwargs)

Bases: BaseTag

This is for case-sensitive tags like those used in SVG generation.

Source code in src/air/tags/models/base.py
48
49
50
51
52
53
54
55
56
57
def __init__(self, *children: Renderable, **kwargs: AttributesType) -> None:
    """
    Args:
        children: Tags, strings, or other rendered content.
        kwargs: Keyword arguments transformed into tag attributes.
    """
    self._name = self.__class__.__name__
    self._module = self.__class__.__module__
    self._children: tuple[Renderable, ...] = children
    self._attrs: dict[str, AttributesType] = kwargs