Delivery
Need storefront configuration?
Use the public API origin, merchant slug, and location ID. Storefront components
never receive a Crave API key; register each exact browser origin before making
requests.
Preview
Import
Usage
Props
string
required
The location ID to check delivery zones against.
(address: DeliveryAddress) => void
required
Callback fired when a valid delivery address is confirmed.
Behavior
- Google Places autocomplete for address input
- Validates address against the location’s delivery zones
- Shows “Outside delivery area” error for out-of-range addresses
- Displays delivery fee and estimated time for valid addresses
- Optional delivery instructions text field
