Without a framework
@weekwise/dom with eventClassName coloring events by category. Focus an event and press
Delete to remove it.
createCalendar(element, { // … eventClassName: (event) => `event--${event.color}`, onEventDelete(event) { events = events.filter((e) => e.id !== event.id); calendar.update({ items: events }); },});