Rate Plan Selector

Radio-style rate plan cards for accommodation booking. Shows price per night, stay total (nights × rate), cancellation policy, and meal inclusion. Full ARIA radiogroup semantics.

core/rate-plan-selector

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Three rate plans with 3-night total, and loading skeleton.

API Reference

PropTypeDescription
ratePlansreq
RatePlan[]Available rate plans.
valuereq
string | undefinedSelected plan ID.
onChangereq
(planId: string) => voidCalled when selection changes.
nights
numberNumber of nights — used to compute stay totals.
loading
booleanShows loading skeleton.