StealThis .dev

Calendar View

A full-featured monthly calendar with event creation, editing, and deletion. Supports multiple event categories and drag-to-create on day cells.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Calendar View

A full-featured monthly calendar component with event management. Create, edit, and delete events directly from the grid, with support for multi-day spans, event categories, and color-coding. Events are stored in-memory and rendered dynamically on a navigable month grid.

Features

  • Month grid with day cells, today highlight, and event pills
  • Create events by clicking any day cell — modal pre-fills the date
  • Edit and delete existing events via click-to-open modal
  • Multi-day events span across cells with continuous pill rendering
  • 5 event category types: Meeting, Event, Reminder, Holiday, Task
  • 6 color swatches per event for quick visual grouping
  • Navigate months with Prev / Today / Next controls