Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit a98d149

Browse files
Add missing prop descriptions to PreviewCardRoot
- Add description for default_open prop - Add description for open prop - Add description for on_open_change prop - Add description for delay prop with default value - Follow established comment format for consistency Co-Authored-By: Carlos Cutillas <carlos@reflex.dev>
1 parent 4ee06b5 commit a98d149

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

reflex_ui/components/base/preview_card.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,19 @@ class PreviewCardRoot(PreviewCardBaseComponent):
4343

4444
tag = "PreviewCard.Root"
4545

46+
# Whether the preview card is open by default. Defaults to False.
4647
default_open: Var[bool]
4748

49+
# Whether the preview card is open.
4850
open: Var[bool]
4951

52+
# Event handler called when the preview card is opened or closed.
5053
on_open_change: EventHandler[passthrough_event_spec(bool, dict, str)]
5154

5255
# Event handler called after any animations complete when the preview card is opened or closed.
5356
on_open_change_complete: EventHandler[passthrough_event_spec(bool)]
5457

58+
# How long to wait before opening the preview card on hover. Specified in milliseconds. Defaults to 600.
5559
delay: Var[int]
5660

5761
# How long to wait before closing the preview card that was opened on hover. Specified in milliseconds. Defaults to 300.

0 commit comments

Comments
 (0)