diff --git a/reflex/components/base/bare.py b/reflex/components/base/bare.py
index ee66ecd4d..c449dc6ba 100644
--- a/reflex/components/base/bare.py
+++ b/reflex/components/base/bare.py
@@ -1,7 +1,7 @@
"""A bare component."""
from __future__ import annotations
-from typing import Any, Iterator
+from typing import Any, Iterator, Optional
from reflex.components.component import Component
from reflex.components.tags import Tag
@@ -12,7 +12,7 @@ from reflex.vars import Var
class Bare(Component):
"""A component with no tag."""
- contents: Var[str]
+ contents: Optional[Var[str]] = None
@classmethod
def create(cls, contents: Any) -> Component:
diff --git a/reflex/components/el/elements/base.py b/reflex/components/el/elements/base.py
index fd2dc8cbb..fefbfdb56 100644
--- a/reflex/components/el/elements/base.py
+++ b/reflex/components/el/elements/base.py
@@ -1,5 +1,4 @@
-"""Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
-from typing import Union
+from typing import Union, Optional
from reflex.components.el.element import Element
from reflex.vars import Var as Var
@@ -9,49 +8,49 @@ class BaseHTML(Element):
"""Base class for common attributes."""
# Provides a hint for generating a keyboard shortcut for the current element.
- access_key: Var[Union[str, int, bool]]
+ access_key: Optional[Var[Union[str, int, bool]]] = None
# Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
- auto_capitalize: Var[Union[str, int, bool]]
+ auto_capitalize: Optional[Var[Union[str, int, bool]]] = None
# Indicates whether the element's content is editable.
- content_editable: Var[Union[str, int, bool]]
+ content_editable: Optional[Var[Union[str, int, bool]]] = None
# Defines the ID of a