Profile
ProfilePromotions
Active promotions list with image, pricing, validity dates, and claim CTA.
Profile
Profile components build the restaurant detail pages.
Components
<XRdProfilePromotions />
Active promotions section displaying promotion cards with image, title, price, description, validity dates, status badge, and a "Claim Offer" button. Only renders when promotions are available.
<XRdProfilePromotions
:promotions="restaurant.promotions"
:has-specials="restaurant.hasSpecials"
:specials="restaurant.specials"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
promotions | Promotion[] | undefined | Array of promotion objects |
specials | any | undefined | Restaurant specials data (alternative source) |
hasSpecials | boolean | undefined | Flag indicating specials are available |
AI Context
category: Profile
package: "@xenterprises/nuxt-x-restaurants"
components:
- XRdProfilePromotions
use-when: >
Displaying active promotions with image, pricing, validity dates, and
claim CTA on a restaurant profile page. Only renders when promotions exist.
typical-page-section: Promotions section on the restaurant profile overview sub-page.
