Skip to content

Commit 4714695

Browse files
committed
update accordion type
1 parent e25d27c commit 4714695

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

reflex_ui/components/base/accordion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Custom Accordion component."""
22

3-
from typing import Literal
3+
from typing import Any, Literal
44

55
from reflex.components.component import Component, ComponentNamespace
66
from reflex.components.core.foreach import foreach
@@ -47,10 +47,10 @@ class AccordionRoot(AccordionBaseComponent):
4747
tag = "Accordion.Root"
4848

4949
# The uncontrolled value of the item(s) that should be initially expanded. To render a controlled accordion, use the `value` prop instead.
50-
default_value: Var[list[str]]
50+
default_value: Var[list[Any]]
5151

5252
# The controlled value of the item(s) that should be expanded. To render an uncontrolled accordion, use the `default_value` prop instead.
53-
value: Var[list[str]]
53+
value: Var[list[Any]]
5454

5555
# Event handler called when an accordion item is expanded or collapsed. Provides the new value as an argument.
5656
on_value_change: EventHandler[passthrough_event_spec(list[str])]

reflex_ui/components/base/accordion.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ class AccordionRoot(AccordionBaseComponent):
8585
def create(
8686
cls,
8787
*children,
88-
default_value: Var[list[str]] | list[str] | None = None,
89-
value: Var[list[str]] | list[str] | None = None,
88+
default_value: Var[list[Any]] | list[Any] | None = None,
89+
value: Var[list[Any]] | list[Any] | None = None,
9090
hidden_until_found: Var[bool] | bool | None = None,
9191
open_multiple: Var[bool] | bool | None = None,
9292
disabled: Var[bool] | bool | None = None,
@@ -295,8 +295,8 @@ class HighLevelAccordion(AccordionRoot):
295295
items: Var[list[dict[str, Component | str]]]
296296
| list[dict[str, Component | str]]
297297
| list[dict[str, Component | str]] = None,
298-
default_value: Var[list[str]] | list[str] | None = None,
299-
value: Var[list[str]] | list[str] | None = None,
298+
default_value: Var[list[Any]] | list[Any] | None = None,
299+
value: Var[list[Any]] | list[Any] | None = None,
300300
hidden_until_found: Var[bool] | bool | None = None,
301301
open_multiple: Var[bool] | bool | None = None,
302302
disabled: Var[bool] | bool | None = None,
@@ -378,8 +378,8 @@ class Accordion(ComponentNamespace):
378378
items: Var[list[dict[str, Component | str]]]
379379
| list[dict[str, Component | str]]
380380
| list[dict[str, Component | str]] = None,
381-
default_value: Var[list[str]] | list[str] | None = None,
382-
value: Var[list[str]] | list[str] | None = None,
381+
default_value: Var[list[Any]] | list[Any] | None = None,
382+
value: Var[list[Any]] | list[Any] | None = None,
383383
hidden_until_found: Var[bool] | bool | None = None,
384384
open_multiple: Var[bool] | bool | None = None,
385385
disabled: Var[bool] | bool | None = None,

0 commit comments

Comments
 (0)