mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
change example creation functions to take the label and the object directly
This commit is contained in:
@@ -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")')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user