Schedule
A calendar with month, week, day, agenda and resource timeline views, drag to move and resize, recurring events and any time zone.
Import
import { Schedule } from '@vitral/vue';Week
Business hours are shaded; overlapping events are organized with 1 item per line and '+N more' (event-max-stack); the red line is now. The standup repeats every weekday, payroll on the first and last of the month.
Month
Events run across the days they cover; a busy day shows “+N more”, which opens the full list.
Agenda
The next two weeks as a list, day by day.
- Thursday, November 12, 2026
- Friday, November 13, 2026
- Saturday, November 14, 2026
- Sunday, November 15, 2026
- Monday, November 16, 2026
- Tuesday, November 17, 2026
- Wednesday, November 18, 2026
- Thursday, November 19, 2026
- Friday, November 20, 2026
- Monday, November 23, 2026
- Tuesday, November 24, 2026
- Wednesday, November 25, 2026
Timeline by resource
Rooms as rows and time across. Drag a booking to another room, or press Alt with Up and Down.
The same instants, read somewhere else
Three fixed instants, drawn in whichever zone is chosen. Nothing about the events changes — only which hour and which day the grid puts them at, so the nightly build crosses into the day before or the day after depending on where you are standing. Click an event: what comes back is the instant it always was.
Export to a calendar
`exportICS()` hands the reader the events as an iCalendar file that Google Calendar, Outlook and Apple Calendar import: a recurring event keeps its rule and its exceptions rather than being written out day by day, and an all-day one stays a date. `toICalendar()` returns the text instead.
- Thursday, November 12, 2026
- Friday, November 13, 2026
- Sunday, November 15, 2026
- Monday, November 16, 2026
- Tuesday, November 17, 2026
- Wednesday, November 18, 2026
Custom toolbar, content and revert
The toolbar and the event content are slots. Hours run 08:00–18:00 in 15-minute slots, and a move onto a weekend is reverted.
Filtered
`filter` shows only some events: words, looked for in the title, the description and the location with case and accents aside (“reuniao” finds Reunião), or a function that keeps an event. The events themselves are untouched, so clearing the filter brings them all back, and the iCalendar export still has every one.
API
Read from packages/vue/src/components/Schedule/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| events | ScheduleEvent[] | — |
| filter | string | ((event: ScheduleEvent) => boolean) | null | Shows only some events: words to look for in the title, the description and the location (case and accents aside), or a function that keeps an event. The events themselves are left as they are. |
| resources | ScheduleResource[] | Rows of the timeline view. |
| views | ScheduleViewName[] | The views the switcher offers, in order. Defaults to month, week, day and agenda, plus timeline when there are resources. |
| toolbar | boolean | Shown after the title; set to false to hide the built-in toolbar. Defaults to true. |
| timeZone | string | The zone the calendar is drawn in — an IANA name such as `'America/Sao_Paulo'`. Events keep the instants they were given; only which hour and which day they are shown at changes, and every date the schedule emits is an instant again. An all-day event is a date rather than an instant, so it stays where it is put. |
| slotDuration | number | — |
| timelineSlotDuration | number | Minutes the timeline's columns span. Defaults to 60. |
| snapDuration | number | Minutes a drag or a key moves by. Defaults to 15. |
| minTime | string | The first time shown, `'HH:mm'`. Defaults to `'00:00'`. |
| maxTime | string | The last time shown, `'HH:mm'`. Defaults to `'24:00'`. |
| scrollTime | string | Where the week and day views open scrolled to. Defaults to `'08:00'`. |
| businessHours | ScheduleBusinessHours | ScheduleBusinessHours[] | false | Shades the time outside them; false shades nothing. Defaults to Monday–Friday, 09:00–17:00. |
| firstDayOfWeek | number | 0 = Sunday; defaults to the locale's `firstDayOfWeek`. |
| hour12 | boolean | Force a 12- or 24-hour clock; defaults to the locale's. |
| editable | boolean | Events can be dragged and resized. Defaults to true. |
| selectable | boolean | Empty time can be dragged over to pick a range (`select`). Defaults to true. |
| nowIndicator | boolean | A line at the current time. Defaults to true. |
| defaultDuration | number | Minutes a timed event without an end lasts. Defaults to 60. |
| agendaDays | number | Days the agenda lists. Defaults to 7. |
| timelineDays | number | Days the timeline spans. Defaults to 1. |
| maxEventsPerDay | number | Events shown in a month cell, and rows in the week's and day's all-day row, before "+N more". Defaults to 3. |
| eventMaxStack New in 0.2.17 | number | Maximum concurrent events shown side-by-side in time grid slots before "+N more". Set to 1 for 1 item per line, cleanly aligned across the full column width. Defaults to 1 in week view, 3 in day view. |
| maxOverlappingEvents New in 0.2.17 | number | Alias for `eventMaxStack`. |
| scrollHeight | string | Height of the scrolling area of the week, day and timeline views. Defaults to `'36rem'`. For one height across the month, the week and the day — so switching views does not move the page — set the CSS variable `--vt-schedule-height` on the component: every view but the timeline fills it, and the month scrolls inside when a week is busy. |
| scrollbar | ScrollbarMode | The bars of the boxes this component scrolls inside — `'hover'`, `'always'` or `'native'`. The application's `scrollbar` option by default, which is `'hover'`. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Emits
| Event | Payload | Description |
|---|---|---|
| range-change | range: { start: Date; end: Date; view: ScheduleViewName } | The visible range changed: the moment to fetch its events. |
| event-click | payload: { event: ScheduleEvent; occurrence: ScheduleOccurrenceInfo; originalEvent: Event } | — |
| event-change | change: ScheduleEventChange | — |
| select | selection: ScheduleSelection | — |
| date-click | payload: { date: Date; allDay: boolean; resourceId?: string | number | null; originalEvent: Event } | — |
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | The parts, written as children: `<Schedule.Toolbar>`, `<Schedule.Event>`… |
| toolbar | (props: ScheduleToolbarSlotProps) | Replaces the whole toolbar. |
| event | (props: ScheduleEventSlotProps) | An event's content. |
| resource | (props: { resource: ScheduleResource }) | A resource's row header in the timeline. |
| empty | — | The agenda with nothing in it. |