A full-month grid with per-day event chips, overflow links, and drag by day.
On this page
The month view lays the whole month out as a week-aligned grid.
Multi-day events render as bars spanning their days — clipped at week
edges with continuation styling and stacked into lanes when they overlap —
while single-day events list as chips below them, all-day first. Days
outside the current month are dimmed.
<script setup lang="ts">
import { CScheduler } from '@coreui/vue-scheduler'
const pad = (n: number) => String(n).padStart(2, '0')
const day = (offset: number) => {
const date = new Date()
date.setDate(date.getDate() - ((date.getDay() + 6) % 7) + offset)
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`
}
const events = [
{ id: 'standup', title: 'Standup', start: `${day(0)}T09:00`, end: `${day(0)}T09:15`, rrule: 'FREQ=DAILY;COUNT=10' },
{ id: 'design', title: 'Design review', start: `${day(1)}T10:00`, end: `${day(1)}T11:30`, color: '#2eb85c' },
{ id: 'sync', title: 'Team sync', start: `${day(1)}T10:30`, end: `${day(1)}T11:00` },
{ id: 'one', title: '1:1', start: `${day(1)}T13:00`, end: `${day(1)}T13:30`, color: '#e55353' },
{ id: 'conf', title: 'CoreUI Conf', start: day(4), end: day(6), allDay: true },
{ id: 'planning', title: 'Planning', start: `${day(7)}T10:00`, end: `${day(7)}T12:00` }
]
</script>
<template>
<CScheduler view="month" :month-max-events-per-day="3" :events="events" />
</template>Overflow
monthMaxEventsPerDay (default 4) caps the single-day chips per day; the
remainder collapses into a +N more link that jumps straight to that
day’s day view. Bars always render.
Interactions
- Drag a chip or a bar to another day to move the event — times (and, for all-day events, the day span) are preserved, only the dates change.
- Drag across empty days to create an all-day event spanning them.
- Keyboard: focus a chip or bar, press Enter to grab it, move with ←/→ (±1 day) and ↑/↓ (±1 week), then Enter to confirm or Escape to cancel.