change example creation functions to take the label and the object directly

This commit is contained in:
Fabio Pliger
2024-02-02 12:07:19 -06:00
parent 11a4adaaa0
commit 779b367e2c
2 changed files with 19 additions and 11 deletions

View File

@@ -88,5 +88,11 @@ Card(el.p("This is a cool card!"), image="https://pyscript.net/assets/images/pys
"instance": Radio(),
"code": el.code("Radio()"),
},
},
'elements':{
'div': {
'instance': el.div("This is a div"),
'code': el.code('div("This is a div")')
}
}
}