Results Card Shell

Server-safe image + content shell for result cards. Handles image, overlay, skeleton, and orientation (vertical/horizontal). Build ActivityCard and PropertyCard on top of this by composing content into children.

core/results-card-shell

Installation

1 · Add registry to components.json

2 · Install component

Examples

Results card shell

Vertical (default), horizontal, with imageOverlay, and loading skeleton.

Composed results page

ResultsHeader, ActiveFilterChips, AvailabilityBadge, EmptyState, ResultsGrid + ResultsCardShell, BookingSummaryCard.

API Reference

PropTypeDescription
imageUrl
stringHero image URL.
imageAlt
stringAlt text for the image.
imageAspect
stringAspect ratio for the image area in vertical mode.
orientation
"vertical" | "horizontal"Card layout — image stacked or side-by-side.
imagePosition
"left" | "right"Image side in horizontal mode.
imageOverlay
ReactNodeContent placed in the image overlay (e.g. availability Badge). Children of the overlay receive pointer-events-auto.
imageClassName
stringAdditional classes for the image container. Useful for overriding horizontal widths.
imagePlaceholder
ReactNodePlaceholder content shown when no imageUrl is provided. Rendered centered inside the image area.
childrenreq
ReactNodeCard body content.
loading
booleanShows a loading skeleton.
loadingSkeleton
ReactNodeCustom loading skeleton. When provided, replaces the default skeleton.