Skip to content

vdom 0.5

Latest
Compare
Choose a tag to compare
@rgbkrk rgbkrk released this 09 Nov 16:44
· 119 commits to main since this release

Write declarative layouts in Python, today! πŸŽ‰

pip install vdom

Features

  • Helpers for svg elements available in vdom.svg
from vdom.svg import svg, circle

svg(
    circle(
        cy=10,
        cx=10,
        r=10
    ),
    height=20
)
  • Introduce button, label, and style elements

Fixes

  • void elements (like img, input_) now prevent you from accidentally putting children on them (since that would be totally invalid)