Fixed pc.html to accept state var. (#775)
This commit is contained in:
parent
e9928d9838
commit
bd6ea9d977
@ -1,9 +1,8 @@
|
||||
"""A html component."""
|
||||
|
||||
from typing import Dict
|
||||
from typing import Any
|
||||
|
||||
from pynecone.components.layout.box import Box
|
||||
from pynecone.var import Var
|
||||
|
||||
|
||||
class Html(Box):
|
||||
@ -14,7 +13,7 @@ class Html(Box):
|
||||
"""
|
||||
|
||||
# The HTML to render.
|
||||
dangerouslySetInnerHTML: Var[Dict]
|
||||
dangerouslySetInnerHTML: Any
|
||||
|
||||
@classmethod
|
||||
def create(cls, *children, **props):
|
||||
|
Loading…
Reference in New Issue
Block a user