MenuSwitcher
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
Array of available menus for the location.
The ID of the currently selected menu.
Callback fired when a different menu is selected.
Behavior
- Shows “Available now” or “Available at 11:00 AM” based on daypart logic
- Grays out menus outside their operating hours
- Auto-selects the first available menu on mount
