瀏覽代碼

Add comment for theme panel needed for docs (#2508)

* Add comment for theme panel needed for docs

* update pyi

---------

Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
Alek Petuskey 1 年之前
父節點
當前提交
02e626465c
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      reflex/components/radix/themes/base.py
  2. 1 0
      reflex/components/radix/themes/base.pyi

+ 1 - 0
reflex/components/radix/themes/base.py

@@ -201,6 +201,7 @@ class ThemePanel(RadixThemesComponent):
 
     tag = "ThemePanel"
 
+    # Whether the panel is open. Defaults to False.
     default_open: Var[bool]
 
 

+ 1 - 0
reflex/components/radix/themes/base.pyi

@@ -705,6 +705,7 @@ class ThemePanel(RadixThemesComponent):
             *children: Child components.
             color: map to CSS default color property.
             color_scheme: map to radix color property.
+            default_open: Whether the panel is open. Defaults to False.
             style: The style of the component.
             key: A unique key for the component.
             id: The id for the component.