Skip to content

SVG

Note

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.

  • [SVG Air Tags A-D][svg-tags-a-d]
  • [SVG Air Tags E-M][svg-tags-e-m]
  • [SVG Air Tags N-S][svg-tags-n-s]
  • [SVG Air Tags T-Z][svg-tags-t-z]

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: Tag

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

Source code in src/air/tags/models/base.py
21
22
23
24
25
26
27
28
29
def __init__(self, *children: Any, **kwargs: str | int | float | bool):
    """
    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, self._attrs = children, kwargs