Hours of the house
No schedule to keep, but the kitchen and the hammam do have their hours. A night porter looks after the house once the front desk closes.
An opening hours section for a hotel drawn as a 24 hour dial: hour ticks fade in around the face, each service gets its own ring whose arc draws in from its opening to its closing time, and choosing a service from the ruled list lights its arc in the accent color while its name and hours change in the middle of the dial.
A 24 hour dial where hour ticks fade in around the face and each service gets its own ring whose arc draws from opening to closing time, beside a ruled list that lights the chosen service's arc and shows its name and hours in the middle of the dial.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://beste.dev/r/hotel50?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/hotel50?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/hotel50.tsx plus the text1 word stagger it uses for the heading.
The installed file exports hotel50Demo alongside the block: the exact props behind the preview above. Spread it to get a working section in one line.
import { Hotel50, hotel50Demo } from "@/components/beste/block/hotel50";
export default function Page() {
return <Hotel50 {...hotel50Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Hotel50 } from "@/components/beste/block/hotel50";
export default function Page() {
return (
<Hotel50
eyebrow="Hours of the house"
heading="How a day at Ostria runs"
description="The kitchen and the hammam do have their hours."
services={[
{ name: "Front desk", hours: "07:00 to midnight", from: 7, to: 24 },
{ name: "Breakfast", hours: "07:30 to 11:00", from: 7.5, to: 11 },
{ name: "Roof bar", hours: "18:00 to 01:00", from: 18, to: 1 },
]}
hourLabels={["Midnight", "6", "Noon", "18"]}
labels={{ dial: "A 24 hour dial of the opening hours" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Small line above the heading |
heading | string | – | Section heading, through Text1 |
description | string | – | Paragraph under the heading |
services | Service[] | [] | Ruled list rows, each drawn as one ring on the dial |
hourLabels | string[] | [] | Labels at the top, right, bottom and left of the dial |
labels | Labels | {} | Accessible name for the dial |
className | string | – | Extra classes for the outer <section> |
type Service = {
name: string;
hours: string;
from: number;
to: number;
};
type Labels = {
dial?: string;
};from and to are decimal hours on a 24 hour clock (7.5 is 07:30), with midnight at the top. When to is less than or equal to from, the arc runs past midnight, so from: 18, to: 1 draws a seven hour arc.hours is display text only; the arc geometry comes from from and to.hourLabels uses the first four entries, placed at 0, 6, 12 and 18 o'clock.aria-live="polite" region.pathLength and ticks fade in around the face once in view; with reduced motion they render in place.