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-cardInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default
Click the heart to save. Pricing uses formatPrice internally.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
typereq | string | — | Property type label (on StayCardType). |
locationreq | string | — | Location string (on StayCardType). |
pricereq | number | — | Price per period (on StayCardPricing). |
currency | string | "ZAR" | ISO currency code (on StayCardPricing). |
period | string | "night" | Billing period label (on StayCardPricing). |
ratingreq | number | — | Average rating 1–5 (on StayCardRating). |
reviews | number | — | Review count (on StayCardRating). |