ValyroUI Русская версия

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

PropTypeDefault
name *ReactNodeName of the place.
distancenumberDistance in meters; printed as "236 m" or "1.2 km" in the locale.
openbooleanOpen now.
hoursReactNodeOpening hours after the status: "09:00 – 22:00".
optionsLocationOption[][]Ways to get the order: pick-up, delivery.
actionReactNodeMain button at the bottom: "Start order".
secondaryActionReactNodeSmall control before the main button: a route button.
headingLevel1 | 2 | 3 | 4 | 5 | 63Level of the name (default 3).
localestringBCP 47 locale for the distance.
labelsPartial<LocationCardLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Guided Product Finder · Next: Shopping Cart Drawer · All Shop and payments