Guides
How to install the Add to Calendar Button
Step 1: Integrate via CDN
Load the respective script by adding the following script tag to the head section of your website.
The script will be loaded in a non-blocking way. So you don't need to worry about where to include it exactly.
<script src="https://cdn.jsdelivr.net/npm/add-to-calendar-button@3" async defer></script>Step 2: Use it
Start using it by adding a <add-to-calendar-button> tag to your HTML source code - with the options as attributes.
Yes, it is that simple.
Your code block could look like the following.
<add-to-calendar-button name="Title" options="'apple','google'" location="World Wide Web" start-date="2026-12-01" end-date="2026-12-01" start-time="10:15" end-time="23:30" time-zone="EST"></add-to-calendar-button>Styles & languages
The script ships with the "default" button style and the English language pack built in - so the button looks great and works out of the box without any extra configuration.
When you load the browser script directly, every other style and language loads automatically on demand (a few KB each). Bundled integrations should register the required modules explicitly as shown below.
Loading via CDN (Vanilla JS)
With the CDN script tag, styles and languages load automatically. For npm or self-hosted scripts, use style-source="jsdelivr" to load missing assets from jsDelivr, matching the package version. Custom triggers use styleSource: "jsdelivr" in atcb_action. For your own asset hosting, set style-source to the styles/ directory URL and keep locales/ beside it.
See the "button-style" and "language" options at the Configuration page for the full picture.