Skip to content

Using Buttons, RSVP Forms, and Event Lists with your Tech Stack ​

Our Add to Calendar Buttons and RSVP forms can be easily integrated with basically every tech stack.
Getting things up and running with the default can be done within 1 minute. Fine-tune details afterwards if you want to.

Where to start

We recommend to look for your tech stack in the menu and start from there.
Read the rest of this page for more in-depth details and options to tweak things.

Upgrading an existing v2 integration?

Follow the V3 Migration Guide to update your script or npm package and handle styles and languages correctly.

General workflow ​

There are only 2 steps necessary to get RSVP forms and Add to Calendar Buttons showing up in your application or on your website.

  1. Load the script (via importing the package, loading the script via CDN, or via a plugin).
  2. Place an <add-to-calendar-button> tag where you want the element to show up and add the prokey as attribute to it.
html
<add-to-calendar-button prokey="prokey-of-your-event"></add-to-calendar-button>

We automatically generate a prokey for every event you create. You can find it at the very top of the respective event page.

When you create an event via our API, you will receive the prokey as response.

Browser initialization and SSR

The core package registers the interactive Web Component in the browser. Use a client plugin in Nuxt or a Client Component in Next.js. Version 3 also provides a separate SSR entry to pre-render a button shell. See SSR with PRO.

Using it via CDN ​

Load the script by adding the following script tag to the head section of your website. The script will be loaded in a non-blocking way.

html
<script src="https://cdn.jsdelivr.net/npm/add-to-calendar-button" async defer></script>

Styles and languages load automatically from the CDN as needed. Use the main script; the old unstyled builds are only compatibility shims in v3.

Using it via NPM ​

Install the package using the following npm command:

bash
npm install add-to-calendar-button

Import the module into your project/component:

javascript
import 'add-to-calendar-button/styles/all';
import 'add-to-calendar-button/i18n/de';
import 'add-to-calendar-button';

The package includes only the default style and English by default. Choose styles and languages independently. For a fixed style, import add-to-calendar-button/styles/3d; use add-to-calendar-button/styles/all when remote PRO configuration can change the style without a deployment. Import a specific language or small known set, such as add-to-calendar-button/i18n/de, by default. Use add-to-calendar-button/i18n/all only when languages can change unpredictably at runtime. The example mixes styles/all with i18n/de, which is valid. Import every needed style and language module before add-to-calendar-button; load the main module last so it upgrades the custom element only after the assets are registered. Both aggregate imports increase the bundle because they include every respective asset.

Alternatively, set style-source="jsdelivr" to load styles and languages on demand, matching the installed package version. Custom triggers use styleSource: 'jsdelivr' in atcb_action. See the V3 Migration Guide for self-hosting and other strategies. Replace legacy /unstyle and /no-pro imports with the main entry.

Based on your framework/library, you might need to make minor adjustments to the respective config.

Using it via Plugin ​

For some systems (like WordPress), we provide official plugins.

Usually, you can find them in the respective stores; but check the respective page in this documentation for details and to make sure you do not install wrong or malicious code.

SSR with PRO ​

The separate add-to-calendar-button/ssr entry can pre-render a button shell. For data managed through a prokey, use atcb_generate_ssr_html_async on the server. It fetches the PRO configuration before generating HTML:

javascript
import { atcb_generate_ssr_html_async } from 'add-to-calendar-button/ssr';

const html = await atcb_generate_ssr_html_async({
  prokey: 'prokey-of-your-event',
});

Pass only the HTML generated by this function to your framework's raw HTML rendering mechanism. On v3.3.0, the server-rendered shell retains its matching styles until the client upgrades it. Load every needed style and language module before the core package in the browser, then load the core package last to upgrade the shell. The SSR shell does not replace browser initialization of full interaction and RSVP forms. Handle failures when fetching the PRO configuration in your server code.

The official Next.js, Astro, Nuxt, and Svelte guides demonstrate framework-specific HTML rendering and browser upgrades. Adapt their synchronous examples with local event data to the asynchronous PRO call above in your server data flow. In Nuxt, preserve the existing SSR shell during hydration using the demonstrated directive rather than v-html.

Things to consider ​

There are 2 important things to consider before implementing.

1. Package/Plugin vs. CDN ​

Whether you want the script to be part of your core, managed via your usual package/plugin flows - or whether you want to load it via a script tag from an external CDN.

There are Pros and Cons for both approaches and it is completely up to you what you prefer. In doubt, it is about convenience and what you are used to. Mind that using it as a module requires you to keep it up-to-date manually!

2. User Flow ​

If you want links and files to be generated via the script on the client side or whether you want to use our Proxy service.

The first case will generate the links to the calendar sites dynamically directly in the browser. It will also generate the ics file that way. This is the fastest approach (from a user's perspective). However, ics generation gets blocked at some systems and if a calendar provider goes offline or has interal problems, the user will not be able to save an event.
With the proxy, links and files get generated on our side and the user gets redirected to to us first.
This way, when something does not work, we can tell the user about it and offer alternatives and guidance. It is more stable, but a little slower for the user.

You can control this setting at a style, which you then link to your event or group. If no style is set, the proxy will be the default.

Event lists ​

The event list feature renders the public events of an Add to Calendar PRO group through the <add-to-calendar-button> web component.

Instead of rendering a button, the component loads the group's event data and builds a navigable list directly on your website.

Quick start

If you want to get a list online first, follow the step-by-step Create an Event List on your Website recipe.

Requirements ​

The feature requires all of the following:

  • A valid Add to Calendar PRO group.
  • The Prokey of that group.
  • Public Event Overview enabled in the group settings.
  • At least one version of the Add to Calendar Button package that supports the event list.
  • Client-side JavaScript. The event data is loaded and rendered in the browser.

The component cannot confirm whether a Prokey belongs to a group. You are responsible for providing the correct group Prokey.

Basic configuration ​

Provide the group Prokey. Nothing else is required:

html
<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
></add-to-calendar-button>

When Public Event Overview is active for the group, the component detects this automatically and renders the event list instead of a regular Add to Calendar button.

There is one exception: if the group is also configured as a calendar subscription, the component defaults to rendering the subscription button. In that case, explicitly set the Boolean group-overview attribute to render the list instead:

html
<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
  group-overview
></add-to-calendar-button>

group-overview only takes effect together with a valid prokey. Setting it on any group that has the public event overview enabled is always safe, but only necessary in the subscription case.

When a subscription group's overview is requested, a subscription Add to Calendar button is shown at the top, alongside the date controls. The event entries below it are read-only: no landing-page links, individual calendar actions, or RSVP modals are available. This takes precedence over no-details and add-via-list.

To hide the subscription button and restore the regular list interactions, set the overview option No subscribe button (no-subscribe-button) to true:

html
<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
  group-overview
  group-overview-config='{"no-subscribe-button":true}'
></add-to-calendar-button>

This opt-out does not override an explicit no-add:true setting.

Additional settings belong in the group-overview-config object:

html
<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
  group-overview-config='{
    "type":"list",
    "years-only":false,
    "no-details":false,
    "no-add":false,
    "add-via-list":true
  }'
></add-to-calendar-button>

HTML object attributes must contain valid JSON. A convenient pattern is to use single quotes around the attribute and double quotes inside the JSON. Do not add comments or trailing commas.

How data is loaded ​

The component requests the public events from the Add to Calendar PRO Events API. Internally, it uses:

text
GET https://api.add-to-calendar-pro.com/v1/event/all
    ?group=YOUR-GROUP-PROKEY
    &dates=true
    &from=...
    &to=...

You do not need to call this endpoint yourself and you do not expose an API token. The group Prokey acts as the public identifier.

The from parameter is always included. The to parameter is only included when configured.

In development mode, the component uses the development API, development event configuration endpoint, and dev.caldn.net landing-page links.

Date organization ​

Default range ​

The default lower limit is January 1 of the previous calendar year at 00:00:00Z.

For example, during 2027 the default is:

text
2026-01-01T00:00:00Z

Events from years earlier than the previous year are not rendered.

There is no default upper limit for the API request or non-recurring dates. Recurrence expansion has a separate fixed window described below.

Year selection ​

The current year is selected initially and is always available in the year selector.

Other years only appear when at least one event is assigned to them. A year without events is omitted, except for the current year. If the current year has no events, the component shows the localized “No events this year.” message.

The component's language setting controls the empty message, month names, and formatted date strings.

Month selection ​

In the default mode, a second selector shows the months available in the selected year. Months without events are omitted.

The current month is selected when it contains events. Otherwise, the first available month is selected.

Start and end dates ​

An event appears in the month and year of its start date.

If a non-recurring event starts in one year and ends in a later year, it also appears in January of the ending year. It is not repeated in every month between the start and end dates.

For multi-date events, every date returned by the group endpoint becomes its own list entry.

Recurring events ​

Recurring events are supported. Each occurrence is rendered in its own month and year, from the first day of the current month through the last day of the month 18 months ahead, inclusive. This is a month-based window, not a cutoff starting today: earlier occurrences in the current month are included. Occurrences outside that window are omitted.

The from and to options filter the API request; they do not extend this recurrence-expansion window. Recurrence rules, including their end date or occurrence count, still apply. Every rendered occurrence points to the original recurring event for its landing page and Add to Calendar or RSVP action, rather than creating a separate event. Cross-year recurring occurrences are not duplicated in January of their ending year.

Configuration reference ​

group-overview-config can contain none, some, or all of the following properties.

PropertyTypeDefaultDescription
no-subscribe-buttonBooleanfalseFor subscription-group overviews, hides the top subscription button and restores normal list interactions. Without this opt-out, subscription entries are read-only regardless of no-details or add-via-list. An explicit no-add:true still disables entry interactions.
PropertyTypeDefaultDescription
years-onlyBooleanfalseRemoves the month selector and renders every event of the selected year. Month names become headings between the groups of events.
typeStringlistSelects the visual layout. Allowed values are list, cards, and compact. Invalid values fall back to list.
fromStringJanuary 1 of the previous yearUTC ISO datetime limiting the API request at the lower end. Values earlier than the default minimum are clamped to the default.
toStringNo upper limitUTC ISO datetime limiting the API request at the upper end. It must not be earlier than the effective from value.
no-detailsBooleanfalsePrevents navigation to the event landing page. The whole event entry opens the Add to Calendar options or RSVP modal instead.
no-addBooleanfalseDisables all interaction. Entries are rendered as plain, non-clickable content without landing-page links, Add to Calendar actions, or RSVP modals. Overrides no-details and add-via-list.
custom-domainStringcaldn.netHostname used when creating landing-page links, for example events.example.com. Do not include a protocol or path. The domain must already be configured in Add to Calendar PRO.
add-via-listBooleanfalseAdds a direct calendar-options trigger for regular events. Its exact presentation depends on type, no-details, and whether the event uses RSVP.

UTC datetime format ​

from and to must use a UTC ISO datetime without milliseconds:

text
2027-01-01T00:00:00Z

The following values are not valid for these settings:

text
2027-01-01
2027-01-01T00:00:00+01:00
2027-01-01T00:00:00.000Z

If to is invalid or falls before the effective from, the overview cannot be initialized.

Layout types ​

list ​

The list layout renders one event per row and is limited to a width of 600px.

Each entry contains:

  • The start day in a dark block on the left.
  • The title, clamped to two lines.
  • Datetime and location on separate lines.
  • The description, normalized to plain whitespace and clamped to two lines.

The whole card is the event link or action trigger.

cards ​

The cards layout renders equal-width cards and uses the component's container width, not the viewport width.

  • Below 600px: one column.
  • From 600px: two columns.
  • From 1000px: three columns.
  • Maximum component width: 1200px.

Each card contains the datetime above the title, followed by the location and description. The title is clamped to two lines and the description to three lines.

Incomplete rows keep the same column width as complete rows.

compact ​

The compact layout renders a minimal text list using this basic pattern:

text
Date | Event title

The complete text is linked. When direct Add to Calendar actions are enabled, the plus badge becomes the list marker for regular events. RSVP entries use an aligned dot instead.

Interaction behavior ​

Subscription-group overviews show a subscription button with read-only entries by default. The following interaction rules apply to non-subscription groups, or after setting no-subscribe-button:true for a subscription group.

The interaction depends on no-add, no-details, add-via-list, the selected layout, and whether the event uses RSVP.

With no-add enabled, no interaction is available at all. Entries are rendered as static content: no landing-page link, no calendar options, and no RSVP modal. no-details and add-via-list have no effect in this mode.

With no-add disabled (the default), the following combinations apply:

no-detailsadd-via-listRegular eventRSVP event
falsefalseThe whole entry opens the landing page.The whole entry opens the landing page and its RSVP flow.
falsetrueThe whole entry opens the landing page. A separate plus badge opens the calendar options modal.The whole entry opens the landing page. No plus badge is shown.
truefalseThe whole entry opens the calendar options modal.The whole entry opens the RSVP form in a modal.
truetrueIn list and cards, the badge is a visual part of the same action link; clicking anywhere opens the modal. In compact, no badge is shown.The whole entry opens the RSVP form in a modal. No plus badge is shown.

RSVP events ​

RSVP events intentionally do not receive an independent plus action. A personalized calendar file can depend on the RSVP response and belongs to the RSVP flow.

With the default settings, the event therefore opens its landing page. With no-details enabled, the RSVP form is forced into a modal, even if that event's style normally requests inline RSVP rendering.

Landing pages and custom domains ​

Without custom-domain, event links use:

text
https://caldn.net/EVENT-PROKEY

With a configured custom domain:

html
group-overview-config='{"custom-domain":"events.example.com"}'

the initial link becomes:

text
https://events.example.com/EVENT-PROKEY

The value changes the generated source link. Add to Calendar PRO may redirect to a configured custom domain anyway, but setting it here avoids exposing that redirect to technical users inspecting the page.

The custom domain must be active in Add to Calendar PRO. The web component does not configure or validate the remote domain setup.

Language and custom labels ​

Use the regular language attribute to localize month names, date strings, and the empty-current-year message:

html
<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
  language="de"
></add-to-calendar-button>

The empty message can also be overridden through customLabels using the key group_overview.empty.

Styling ​

The event list uses a simple black-and-white base style. It does not change with the regular Add to Calendar Button buttonStyle setting.

The component uses Shadow DOM. Style exposed elements with CSS ::part() selectors:

css
add-to-calendar-button::part(atcb-group-overview-year-select) {
  border-color: rebeccapurple;
}

add-to-calendar-button::part(atcb-group-overview-title) {
  color: rebeccapurple;
}

add-to-calendar-button::part(atcb-group-overview-event) {
  border-radius: 0;
}

Available parts are:

The subscription button container also exposes atcb-group-overview-subscribe when present.

PartElement
atcb-group-overviewRoot overview element
atcb-group-overview-controlsSelector container
atcb-group-overview-year-selectYear selector
atcb-group-overview-month-selectMonth selector
atcb-group-overview-resultsRendered results container
atcb-group-overview-emptyEmpty-current-year message
atcb-group-overview-month-headingMonth heading in years-only mode
atcb-group-overview-listEvent list container
atcb-group-overview-eventIndividual event entry
atcb-group-overview-linkMain event link or action link
atcb-group-overview-dayDay block in the list layout
atcb-group-overview-day-valueNumeric day value
atcb-group-overview-titleEvent title
atcb-group-overview-metaMetadata container
atcb-group-overview-datetimeDatetime row
atcb-group-overview-locationLocation row
atcb-group-overview-datetime-iconDatetime icon
atcb-group-overview-location-iconLocation icon
atcb-group-overview-descriptionEvent description
atcb-group-overview-addPlus badge or button
atcb-group-overview-markerCompact RSVP marker

Not every part exists in every layout or configuration.

Limitations and considerations ​

Public data ​

The group and its returned event data are public when Public Event Overview is active. Do not use the feature as an access-control mechanism.

Client-side rendering ​

The component fetches and renders the events in the browser. Account for the loading request in performance, Content Security Policy, and privacy reviews.

Event details remain managed in PRO ​

The list is an overview, not a second event database. Titles, dates, descriptions, locations, landing pages, and RSVP configuration should continue to be maintained in Add to Calendar PRO.

Complete example ​

html
<script src="https://cdn.jsdelivr.net/npm/add-to-calendar-button" async defer></script>

<add-to-calendar-button
  prokey="YOUR-GROUP-PROKEY"
  language="en"
  group-overview-config='{
    "years-only":false,
    "type":"cards",
    "from":"2027-01-01T00:00:00Z",
    "to":"2028-12-31T23:59:59Z",
    "no-details":false,
    "no-add":false,
    "custom-domain":"events.example.com",
    "add-via-list":true
  }'
></add-to-calendar-button>

For a shorter implementation walkthrough, see Create an Event List on your Website.

Overwrite settings ​

Some parameters can be overwritten by adding them directly to the HTML tag.

This means that the value, put as attribute to the button integration, overrules a potential different setting at the app.

This can be useful, if custom style shall be defined within the code or you want to change some details dynamically. Latter one is quite limited and should be considered carefully! Usually, the better way to change things dynamically is via our API.

Make all settings overridable

You can set the option proOverride to the button and you will be able to override all available settings on the code level.

Be careful with that, as it can easily lead to mixed data, since any changes on the code level will not get reflected anywhere else at Add to Calendar PRO!

You should at least also set proxy="false".

This, however, can be useful for special cases, where you want to only use the button on your website, where you only set the date there (maybe due to privacy reasons), while you want to have the style managed on the Add to Calendar PRO app (maybe by the marketing team).

Parameters, that can be always overwritten or even only set at the code level, are listed below.

AttributeDescriptionType / Format
debugLogs errors in the browser's JavaScript console and renders an error message instead of the button.Boolean
cspnonceNecessary if you are working with a strict Content Security Policy. The value can be allowed as nonce in the CSP.String
instanceTriggers a "re-render" of the button by changing/increasing the number.Number
attendeeScheme "NAME|E-MAIL" (for example, "John Doe|[email protected]") or just an email address. Only 1 entry possible. Enables the use of iCal status functionalities. Requires a set organizer. Enforces dynamic creation of ics files instead of retrieving the static file.String (NAME|EMAIL)
imagesEnhances the rich data details. 1-3 images via URL. It is recommended to use 3 images, each with a width of 1920px. One with an aspect ratio of 1x1, one with 4x3, and one with 16x9.Array (urls)
sizeAdjust scaling. 1-3 values. With multiple values, the first is set for large screens, the second for medium screens, and the third for small screens. With 2 values, the second applies to both medium and small screens.String (X|X|X)
inlineRenders the button inline instead of the default block style.Boolean
inlineRsvpRenders the RSVP form inline and not as a modal after clicking the button.Boolean
forceOverlayRenders dropdowns above all elements. Resource-intensive but necessary for some layouts.Boolean
customLabelsSee the relevant setting in the app for possible values. The structure must comply with a JSON schema.Object
customCssLoads a specified external CSS file (absolute path) instead of the integrated style.String (url)
lightModeDefines how the dark/light theme should be set. "system" is based on the user's operating system settings. "bodyScheme" switches to "dark" if the "atcb-dark" or "dark" class is set in the body or html tag.String (system, dark, light, bodyScheme)
styleLightSee the relevant setting in the app for possible values. Example: styleLight="--btn-background: #2f4377; --btn-text: #fff; --font: Georgia, 'Times New Roman', Times, serif;"String
styleDarkSee the relevant setting in the app for possible values. Example: styleDark="--btn-background: #2f4377; --btn-text: #fff;"String
languageLanguage of the button. Options: ar, cs, de, en, es, et, fa, fi, fr, hi, id, it, ja, ko, nl, no, ro, pl, pt, sv, tr, vi, zhString
blockInteractionBlocks any interaction with the button, with the exception of hover effects.Boolean
disabledDisables the button and shows it in a grey state.Boolean
hiddenHides the button completely.Boolean
bypassWebViewCheckFor users who load the button on their iPhone in a WebView environment (such as the Instagram browser), we cannot offer the ics file directly for download. Therefore, in this case, we show a small tutorial on how to save the event instead. If you use the button in your own application, where you can allow the download of ics files in the default browser, you can bypass this workaround with the option bypassWebViewCheck.Boolean
proxyRoutes the user via the landing page when clicking a button option. This comes with some better user guidance, but might require you to update your privacy policy.


This option needs to be set when you want to track click on Add to Calendar Buttons!
Boolean
customVarDefine custom variables, which then can be used in your event's description and location fields. The structure must comply with a JSON schema. A field "name" can be used via %%name%% in the description or location.Object
fakeMobileSimulates a mobile device.Boolean
fakeIOSSimulates iOS.Boolean
fakeAndroidSimulates Android.Boolean