Skip to content

Commit

Permalink
feat: components module for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Mar 21, 2024
1 parent 41b3479 commit 433b644
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ipyantd/icons/components.py
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 433b644

Please sign in to comment.