Location Card
Store location: distance, opening hours, pickup options and ordering. Pro · Shop and payments › Catalog
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add location-card
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { LocationCard } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
name * | ReactNode | Name of the place. | |
distance | number | Distance in meters; printed as "236 m" or "1.2 km" in the locale. | |
open | boolean | Open now. | |
hours | ReactNode | Opening hours after the status: "09:00 – 22:00". | |
options | LocationOption[] | [] | Ways to get the order: pick-up, delivery. |
action | ReactNode | Main button at the bottom: "Start order". | |
secondaryAction | ReactNode | Small control before the main button: a route button. | |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | 3 | Level of the name (default 3). |
locale | string | BCP 47 locale for the distance. | |
labels | Partial<LocationCardLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Product Card — Product card
- Product Grid — Product catalog
- Product Filters — Catalog filters
- Product Spotlight — Featured product: tagged photo, price, rating and actions
- Reviews Summary — Reviews: average rating, filterable histogram, sorting and helpful votes
- Guided Product Finder — Product finder wizard: branching questions and why a product fits
- Shopping Cart Drawer — Slide-out cart
- Checkout Summary — Order summary at checkout
- Checkout Form — Checkout: shipping, address type, payment and field validation
- Order Tracking — Order tracking: stages, carrier, tracking number and history
- Invoice — Printable invoice: line items, taxes, discounts and totals in any currency
- Credit Card — Bank card: gradient or two-tone, network detected from the number, contactless
Previous: Guided Product Finder · Next: Shopping Cart Drawer · All Shop and payments