YYonda UI Docs

AvailabilityStatusBadge

Small scarcity / urgency badge for activity cards, room rows, cabin rows, and search results. Four canonical statuses — selling fast, limited, sold out, recently booked — with a locale-neutral default label formatter and an escape hatch for custom copy.

Four statuses

selling-fast and limited use amber for warm urgency; sold-out uses destructive; and recently-booked is a muted informational tone.

Selling fastOnly 3 leftSold outBooked 5 times today

Sizes

size="sm" fits inside dense card layouts (activity thumbnails, room rows). size="md" is the default for standalone use.

Only 2 leftOnly 2 left

Custom labels

Callers pass their own label for translated copy or brand voice.

Popular choiceJust 1 room leftSomeone just booked this

In a card

The size="sm" variant embedded into an activity result card, aligned with the category eyebrow.

Sydney Harbour Bridge Climb

Only 2 left

3-hour guided climb — sunrise

Meets 6:15 AM · Available today

$289per person

Props reference

PropTypeRequiredDescription
status'selling-fast' | 'limited' | 'sold-out' | 'recently-booked'yesControls color and icon
labelstringnoPre-formatted label. When omitted, a default is derived from status + count.
countnumbernoNumeric count used by the default formatter (e.g. 'Only 3 left', 'Booked 5 times today')
size'sm' | 'md'no (default 'md')Trigger size — 'sm' for use inside cards
classNamestringnoExtra classes on the badge span