Setup

@wix/bookings

To use the AvailabilityCalendar API, install the @wix/bookings package.

Install the package

Follow the installation instructions for your development environment.

Development environmentInstallation method
Wix sites (editor or IDE)Use the package manager.
Wix sites (local IDE)Run wix install @wix/bookings` using the Wix CLI.
Blocks appsUse the same installation method as Wix sites.
CLI and self-hosted appsRun npm install @wix/bookingsoryarn add @wix/bookings.
Headless sites and appsRun npm install @wix/bookingsoryarn add @wix/bookings.

Import the package

To import the package in your code:

Copy
import { availabilityCalendar } from "@wix/bookings";
Did this help?