ValyroUI English version

Booking Slots

Запись на встречу: календарь, слоты в часовом поясе гостя, форма и подтверждение. Pro · Работа и команды › Планирование

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add booking-slots
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { BookingSlots } from 'valyro-ui-pro';

Пропсы

PropTypeDefault
title *ReactNodeEvent name, e.g. "Product demo".
descriptionReactNodeEvent details in the side panel, under the duration, location and time zone.
host{ name: string; src?: string; title?: string }Person you meet with: avatar, name and job title above the event name.
locationReactNodeWhere the meeting happens, e.g. "Google Meet".
availability *WeeklyAvailabilityWorking hours per weekday in hostTimeZone.
hostTimeZone *stringIANA zone the availability is written in.
overridesRecord<string, AvailabilityInterval[]>Host-local dates ("YYYY-MM-DD") with custom hours; an empty list is a day off.
busyBusyInterval[]Existing meetings and other busy time.
durationsnumber[][30]Meeting lengths to choose from, in minutes. Default [30].
durationnumberControlled duration; use with onDurationChange.
defaultDurationnumberInitial duration when uncontrolled.
onDurationChange(minutes: number) => voidCalled with the new duration when it changes.
intervalnumberMinutes between slot starts. Defaults to the duration.
bufferBeforenumberFree minutes required before a slot; slots closer than this after a busy interval are hidden.
bufferAfternumberFree minutes required after a slot; slots ending closer than this before a busy interval are hidden.
minNoticenumber240Earliest bookable start in minutes from now. Default 240 (4 hours).
bookingWindownumber60How many days ahead can be booked. Default 60.
timeZonestringThe visitor's IANA zone. Defaults to the browser's.
defaultTimeZonestringInitial timeZone when uncontrolled.
onTimeZoneChange(timeZone: string) => voidCalled with the new timeZone when it changes.
defaultHourCycle'h12' | 'h23'Clock shown first; the visitor can switch. Default from the locale.
dateDate | nullSelected day (a local date, like the calendar's), or null for none.
defaultDateDate | 'first-available' | nullDay selected at first. 'first-available': the earliest day with open times in the month shown, until the visitor picks a day, so the times show straight away. Default none.
onDateChange(date: Date | null) => voidCalled with the new date when it changes.
defaultSlotDate | 'first-available' | nullTime selected at first. 'first-available': the first open time of the selected day, until the visitor picks one.
defaultStep'pick' | 'details''pick'Step shown first: details opens on the form for the selected time (falls back to pick without one).
onBook(booking: BookingRequest) => unknownBooks the slot. May return a promise; a rejection keeps the form open with an error.
nowDateCurrent time, for slot cut-offs. Default new Date().
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<BookingSlotsLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Calendar View — Календарь событий
  • Scheduler — Планировщик: день, неделя, месяц и таймлайн ресурсов, drag & drop, повторы
  • Kanban Board — Доска задач
  • Gantt Chart — Диаграммы Ганта с зависимостями и перетаскиванием
  • CRM Pipeline — Воронка сделок: этапы, суммы и вероятности, перетаскивание между этапами
  • Approval Flow — Многоэтапное согласование: последовательные и параллельные этапы, решения с причиной, история
  • Goal Tracker — OKR: цели и ключевые результаты, статусы, уверенность, чек-ины с историей
  • Onboarding Checklist — Чек-лист онбординга: прогресс, подсказки с CTA, скрытие и празднование
  • Course Path Navigator — Карта курса: модули, блокировки, прогресс и навыки, список на узком экране
  • Team Members — Участники команды: роли, приглашения по email, ожидающие инвайты, счётчик мест
  • Org Chart — Оргструктура: дерево с зумом и панорамой, поиск, сворачивание веток
  • Activity Feed — Лента активности

Назад: Gantt Chart · Далее: CRM Pipeline · Весь раздел «Работа и команды»