DayFlowSTUDIO

Vue calendar component

Open-Source Vue Event Calendar

DayFlow is an MIT-licensed calendar component for Vue 3. The useCalendarApp composable takes views, plugins and events as one object, and the component renders whatever it returns. Nothing about the configuration is Vue-specific, so a React example from the docs translates line for line.

Try the interactive demoInstallation guide
Package
@dayflow/vue
Requires
Vue 3.0 or newer
Licence
MIT
Views
Day, week, month, year, agenda

Add DayFlow to a Vue app

Install the Vue adapter, the calendar core and the drag plugin.

npm install @dayflow/vue @dayflow/core @dayflow/plugin-drag

The stylesheet is not optional — without @dayflow/core/dist/styles.css the grid renders unstyled. If your app uses Tailwind, import @dayflow/core/dist/styles.components.css instead, which leaves out the CSS reset that would otherwise fight Tailwind's preflight.

This component opens on today with one event you can drag or resize in the time grid.

<script setup>
import { DayFlowCalendar, useCalendarApp } from '@dayflow/vue';
import {
  createDayView,
  createWeekView,
  createMonthView,
  createEventsPlugin,
  createEvent,
} from '@dayflow/core';
import { createDragPlugin } from '@dayflow/plugin-drag';
import '@dayflow/core/dist/styles.css';

const calendar = useCalendarApp({
  views: [createDayView(), createWeekView(), createMonthView()],
  plugins: [createDragPlugin(), createEventsPlugin()],
  events: [
    createEvent({
      id: 'team-meeting',
      title: 'Team meeting',
      start: new Date(2026, 0, 14, 10, 0),
      end: new Date(2026, 0, 14, 11, 0),
    }),
  ],
  initialDate: new Date(),
});
</script>

<template>
  <DayFlowCalendar :calendar="calendar" />
</template>

What is specific to Vue

Factories come from the core package

The Vue adapter exports the component and the composable. The view, plugin and event factories — createWeekView, createEventsPlugin, createEvent — are imported from @dayflow/core. This is the one place a React snippet needs editing before it runs in Vue, since the React adapter re-exports them.

Bind it, do not spread it

The composable returns a calendar instance that the component takes as a single prop: :calendar="calendar". There are no individual events or view props to bind, so reactivity flows through that one object and you keep using the plugin API to read and write events.

Rendering in Nuxt

The calendar measures its container to lay out the time grid, so in Nuxt it belongs in a browser-rendered part of the tree — a <ClientOnly> wrapper or a .client.vue component. The stylesheet import stays wherever you keep global CSS.

Plan the day or scan the whole year

Register only the views you need. The day view suits appointments, the week view a team's schedule, the month view a workload at a glance, and the two year views a whole planning horizon. The same events stay in place as users switch layouts.

Create and adjust events in the grid

Drag across the grid to create an event, move it to reschedule, or resize it to change its duration. The drag plugin reports every change, so your own scheduling rules decide what is allowed before anything is saved.

Add only what you use

Behaviour arrives as plugins rather than configuration flags, so nothing you skip ends up in the bundle.

Coming from another Vue calendar

Vue teams usually arrive from FullCalendar's Vue component or from a Vue-only calendar. From FullCalendar, the shape is familiar — a plugin array and an event array — but the resource and timeline views that sit behind its commercial licence are separate modules here, and the day, week, month, year and agenda views are all MIT. The FullCalendar comparison maps the options one by one. From a Vue-only library, the gain is that the same configuration works if part of your product later ships in React, Angular or Svelte.

When dates are not the main axis

If your users ask “who is assigned, and when?” rather than “what is happening on this date?”, a calendar is the wrong primitive:

Vue calendar questions

Is the Vue calendar free to use?

Yes. @dayflow/vue, @dayflow/core and the plugins used on this page are MIT licensed, including the day, week, month, year and agenda views. Resource timelines, resource grids, appointment booking and print output are separate paid modules.

Which Vue versions are supported?

Vue 3.0 or newer. The adapter declares vue as a peer dependency with a >=3.0.0 range, so it uses the copy already in your app. There is no Vue 2 build.

Does it work with Nuxt?

Yes, as a client-rendered component. The calendar measures its container to lay out the time grid, so wrap it in ClientOnly or use a .client.vue component rather than rendering it during SSR.

Do I need a date library or a localizer?

No. DayFlow has no date-library peer dependency. You pass JavaScript Date objects to createEvent, and locale-specific formatting comes from the localization plugin.

How do I control the calendar height?

The calendar fills the width of its container and takes its height from the --df-calendar-height custom property on .df-calendar-container. Set it to a fixed value, a viewport unit, or anything else CSS accepts. The theme customization guide covers the rest of the token surface.

Next steps