Calendar

Hourly Booking

Hour-by-hour room availability: an interval is assembled in two taps — start and end — while busy hours carry their owner's name and cannot be selected.

What you can change

  • heading — the resource name in the header
  • date — the day availability is shown for
  • openFrom and openTo — opening and closing hours, which define the row list

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/calendar-028?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

The component is self-contained: one file, zero dependencies, its own palette in local variables --vibeui-calendar-028-*. Client-side: the start, the end and the error text live in useState. Every hour is a <button> inside a list: a busy hour gets disabled and an aria-label with the owner's name, so unavailability is announced rather than merely coloured. The interval logic is linear: the first press sets the start, the second the end, and a press earlier than the start restarts the selection. Before the end is committed, the interval is checked for overlap with someone else's booking by a loop over the hours, and on an overlap a separate message is shown instead of silent ignoring. The total and the error live in one paragraph with aria-live and are switched by the data-bad attribute. The theme comes from the surrounding color-scheme through light-dark(): the component has no surface of its own by default, it sits directly on the page background and darkens along with it, while the background prop brings the panel back. All the captions and messages arrive in the text dictionary with the substitutions {time}, {who}, {count} and {unit}; the Russian values sit in the defaults.

Tags

  • calendar
  • booking
  • availability
  • rooms
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…