Add preview card component from Base UI#27
Merged
carlosabadia merged 5 commits intomainfrom Jul 15, 2025
Merged
Conversation
- Create PreviewCard component with all sub-components (Root, Trigger, Portal, Positioner, Popup, Arrow, Backdrop) - Implement HighLevelPreviewCard wrapper with trigger and content props as requested - Follow existing component patterns from popover and tooltip components - Add component to lazy loading system in __init__.py - Add demo usage in demo application - All prop descriptions sourced from official Base UI documentation Co-Authored-By: Carlos Cutillas <carlos@reflex.dev>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
- 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>
- Source all prop descriptions from official Base UI JSON documentation files - Update PreviewCardRoot, PreviewCardTrigger, PreviewCardBackdrop, PreviewCardPortal, PreviewCardPositioner, PreviewCardPopup, and PreviewCardArrow components - Add render prop descriptions for all components that support it - Include default values where specified in official docs - Follow established comment format for consistency - Maintain existing functionality while improving documentation accuracy Co-Authored-By: Carlos Cutillas <carlos@reflex.dev>
carlosabadia
approved these changes
Jul 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update all preview card prop descriptions with official Base UI documentation
Summary
This PR comprehensively updates all prop descriptions across all PreviewCard components to match the official Base UI documentation. The changes ensure accuracy, consistency, and completeness of component documentation by sourcing descriptions directly from the official Base UI JSON documentation files.
Key improvements:
Review & Testing Checklist for Human
Recommended test plan: Test the preview card component in the demo application with various configurations (different positions, delays, content types) to ensure functionality remains intact after documentation updates.
Diagram
%%{ init : { "theme" : "default" }}%% graph TD A["Base UI JSON<br/>Documentation Files"]:::context --> B["reflex_ui/components/base/<br/>preview_card.py"]:::major-edit B --> C["PreviewCardRoot<br/>prop descriptions"]:::major-edit B --> D["PreviewCardTrigger<br/>prop descriptions"]:::major-edit B --> E["PreviewCardPortal<br/>prop descriptions"]:::major-edit B --> F["PreviewCardPositioner<br/>prop descriptions"]:::major-edit B --> G["PreviewCardPopup<br/>prop descriptions"]:::major-edit B --> H["PreviewCardArrow<br/>prop descriptions"]:::major-edit B --> I["PreviewCardBackdrop<br/>prop descriptions"]:::major-edit J["demo/demo/demo.py"]:::context --> K["Component Testing"]:::context A -.->|"sourced from"| B J -.->|"validates"| B subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes