Stay Card

Accommodation card built on ProductCard. Adds type/location, star rating, and price-per-night formatting via the formatPrice utility. Designed for Visitza-style listings.

core/stay-card

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Click the heart to save. Pricing uses formatPrice internally.

API Reference

PropTypeDescription
typereq
stringProperty type label (on StayCardType).
locationreq
stringLocation string (on StayCardType).
pricereq
numberPrice per period (on StayCardPricing).
currency
stringISO currency code (on StayCardPricing).
period
stringBilling period label (on StayCardPricing).
ratingreq
numberAverage rating 1–5 (on StayCardRating).
reviews
numberReview count (on StayCardRating).