Website kits › Haven › Rooms

Rooms

Sweep your cursor across a room photo to scrub through its pictures; filters fold other rooms away.

Rooms is a page from Haven, a website kit with 5 pages: A complete five-page website for a boutique hotel by the sea. Price: $5 for the whole pack.

Built with: hover-scrub gallery, sliding filter, folding list.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Rooms props

PropTypeDefaultDescription
namestring
roomsHavenRoom[]
photosHavenPhotos
onBook(room: HavenRoom) => void
onNavigate(page: HavenPage) => void

Methods on the ref

Use it in React

import HavenRooms from './HavenRooms';

<HavenRooms />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Haven

Good for: Travel website templates, Hotel website template, Small business websites, Europe (euro).