YYonda UI Docs

RoomTypeCard

Bookable room configuration tile for property detail pages. Image + name + capacity + beds + amenity chips + meal plan + refundable flag + price + Reserve CTA. Distinct from PropertyCard — it represents a bookable configuration within a property.

Minimal

Smallest valid room — name, capacity, beds, price, CTA. No image, amenities, or flags.

Standard Room

  • 2 adults
  • 1 Queen bed
$220per night

Full-featured

All features: image, description, size, amenities, meal plan, refundable, strikethrough price, nights breakdown.

Deluxe King room

Deluxe King

Spacious room with a city view and rain shower

  • 2 adults
  • 1 King bed
  • 32 m²
Breakfast included✓ Free cancellation
Free WiFiCity viewAir-conRain shower+1 more
$500$450per night$450 × 3 = $1,350

Non-refundable

Family suite with room-only meal plan and non-refundable flag.

Family Suite

Family Suite

  • 2 adults, 2 children
  • 1 King bed + 2 Single beds
  • 48 m²
Room onlyNon-refundable
KitchenetteBalconyTwo bathrooms
$620per night

Sold out

Overlay on the image, CTA disabled and labelled "Sold out".

Presidential Suite
Sold out

Presidential Suite

  • 4 adults
  • 1 King bed + 1 Sofa bed
  • 120 m²
All-inclusive✓ Free cancellation
Butler servicePrivate terraceJacuzziLiving room+2 more
$2,200per night

Grid of rooms (as on a detail page)

Vertically stacked, as on Booking-style room-selection sections.

Standard Room

  • 2 adults
  • 1 Queen bed
  • 24 m²
Room onlyNon-refundable
$220per night

Deluxe King

City view

  • 2 adults
  • 1 King bed
  • 32 m²
Breakfast included✓ Free cancellation
Free WiFiCity viewAir-con
$450per night

Family Suite

  • 2 adults, 2 children
  • 1 King + 2 Single
  • 48 m²
Half board✓ Free cancellation
KitchenetteBalcony
$620per night

Props reference

PropTypeRequiredDescription
brandKnownBrandIdyesDrives BrandedButton theming
namestringyesRoom type name
descriptionstringnoShort one-liner beneath the name
image{ url, alt }noHero image; falls back to muted placeholder
capacity{ adults, children? }yesRenders as '2 adults, 1 child'
bedsstringyese.g. '1 King bed'
sizeSqmnumbernoRoom size in m²
amenitiesstring[]noFirst 4 shown as pills; overflow shows '+N more'
mealPlanMealPlan enumnoRenders as a Badge
refundablebooleannotrue → 'Free cancellation' (green); false → 'Non-refundable' (muted)
pricePerNightnumberyesCurrent rate in major units
strikethroughPricePerNightnumbernoOriginal rate — renders above with strikethrough
currencystring (ISO 4217)yese.g. 'AUD'
localestring (BCP-47)no (default 'en-AU')Formatting locale
nightsnumbernoShows '$450 × 3 = $1,350' below the rate
ctaLabelstringno (default 'Reserve')CTA button label
onReserve() => voidnoCTA click handler
disabledbooleannoDisables CTA
soldOutbooleannoOverlays 'Sold out' and disables CTA
classNamestringnoExtra classes on the Card