Skip to content

Commit 9566945

Browse files
committed
fix: restore **kwargs passthrough to Card component
- Add **kwargs parameter back to Card function signature - Forward **kwargs to html.Section to allow standard Dash props - Fixes breaking regression preventing id, style, and event handlers
1 parent 16aa316 commit 9566945

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/dashkit/card.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def Card(
1515
className: str = "",
1616
header_className: str | None = None,
1717
body_className: str | None = None,
18+
**kwargs,
1819
) -> Component:
1920
header_base = (
2021
"flex flex-wrap items-center justify-between gap-4 px-6 py-4 "
@@ -54,6 +55,7 @@ def Card(
5455
],
5556
className="group flex flex-col w-full h-full rounded-2xl px-[4px] [:where(&)]:py-1 bg-dashkit-panel-light dark:bg-dashkit-panel-dark "
5657
+ className.strip(),
58+
**kwargs,
5759
)
5860

5961

0 commit comments

Comments
 (0)