@atzentis/booking-react
v0.1.12
Published
Atzentis Booking SDK — React hooks and components
Downloads
1,367
Readme
@atzentis/booking-react
React hooks and components for atzentis.io — the Atzentis Hospitality Platform. Built on top of @atzentis/booking-sdk.
Install
npm install @atzentis/booking-react @atzentis/booking-sdk @tanstack/react-queryQuick Start
import { BookingProvider, useProperties } from '@atzentis/booking-react';
function App() {
return (
<BookingProvider apiKey="your-api-key" baseUrl="https://api.atzentis.io">
<PropertyList />
</BookingProvider>
);
}
function PropertyList() {
const { data: properties, isLoading } = useProperties();
if (isLoading) return <div>Loading...</div>;
return properties.map(p => <div key={p.id}>{p.name}</div>);
}Features
BookingProviderwrappingQueryClientProvider- 22 hooks covering all 28 services
- 26 pre-built components for booking flows, PMS operations, and dashboards
- SSR support via separate server entry point for Next.js 16+
- Full TypeScript coverage with strict types
- Tree-shakeable ESM and CJS output
Peer Dependencies
react>= 18.0.0@atzentis/booking-sdk(core client)@tanstack/react-query(data fetching)
Core SDK
For framework-agnostic usage (Node.js, edge, etc.), see @atzentis/booking-sdk.
Links
- atzentis.io — Hospitality Platform
- API Documentation
- GitHub
License
MIT
