Availability Badges

AvailabilityBadge renders a single status badge (limited / sold-out / closed — returns null for available). AvailabilityBadges renders a row of per-variant badges. Server-safe.

core/availability-badges

Installation

1 · Add registry to components.json

2 · Install component

Examples

Availability badges

Composed results page

API Reference

PropTypeDescription
statusreq
AvailabilityStatusavailable | limited | sold_out | closed (on AvailabilityBadge).
spotsLeft
numberSpots remaining shown when status is limited.
statuses
{ status, label? }[]Array of statuses (on AvailabilityBadges).