Javascript
Version: 2.0.0
A JavaScript add-to-calendar button for websites and apps. Let visitors save events to Google Calendar, Outlook, Apple Calendar and more.
1. Link plugin library to your web page's resources
<head>
<!-- Add to calendar library -->
<script src="add-to-calendar.js"></script>
</head> 2. Initialize the plugin on a page element
<a id="myButton">Add to calendar</a>
<!-- init Add to calendar -->
<script>new atc('#myButton');</script> Add a calendar button to event pages or booking confirmations, with event details ready to save.
Offer Google Calendar, Outlook, Apple Calendar and other services so visitors can use their preferred calendar.
Style the button and menu to match your website and keep the event action consistent.
Set the event time zone alongside its start and end times for calendars used across different locations.
Include a title, location, dates and description so visitors can save practical details with the event.
Keyboard controls, focus management and labeled options support different ways of saving events. Flexible placement helps the menu fit your layout.
Open the menu, move between options and choose a calendar service using the keyboard.
Managed focus helps keyboard users follow the menu interaction and identify the active option.
The menu adjusts near screen edges to help keep calendar options visible in smaller spaces.
Choose how the menu aligns with its button to fit the surrounding content and available space.
Labeled options help screen readers identify calendar services so visitors can choose where to save an event.
Choose the version that fits your project, or try the configurator to explore its options.
Version: 2.0.0
141 downloads 😍

JavaScript date picker for forms and booking flows

JavaScript time picker for scheduling and forms

Rich text editor for editing directly on the page