INNER CODE UNIT · Python
Fragment
volfpeter/htmy · htmy/core.py:19
class Fragment:
"""Fragment utility component that simply wraps some children components."""
__slots__ = ("_children",)
def __init__(self, *children: ComponentType) -> None:
"""
Initialization.
Arguments:
*children: The wrapped children.
"""
self._children = children
def htmy(self, context: Context) -> Component:
"""Renders the component."""
return self._children