diff --git a/ipyantd/icons/components.py b/ipyantd/icons/components.py new file mode 100644 index 0000000..6928787 --- /dev/null +++ b/ipyantd/icons/components.py @@ -0,0 +1,13 @@ +from . import widgets +import reacton + + +def Icon( + name: str, + props={}, + events={}, + children=[], +): + widget_cls = widgets.Icon + comp = reacton.core.ComponentWidget(widget=widget_cls) + return reacton.core.Element(comp, kwargs={"name": name, "props": props, "events": events, "children": children})