To use the AvailabilityCalendar API, install the @wix/bookings package.
Follow the installation instructions for your development environment.
| Development environment | Installation method | 
|---|---|
| Wix sites (editor or IDE) | Use the package manager. | 
| Wix sites (local IDE) | Run wix install @wix/bookings using the Wix CLI. | 
| Blocks apps | Use the same installation method as Wix sites. | 
| CLI and self-hosted apps | Run npm install @wix/bookings or yarn add @wix/bookings. | 
| Headless sites and apps | Run npm install @wix/bookings or yarn add @wix/bookings. | 
To import the package in your code: