
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
add-to-calendar-button-react
Advanced tools
Convenient React wrapper for the add to calendar button snippet, which lets you reliably create beautiful buttons, where people can add events to their calendars.
This is a wrapper repository for the popular Add to Calendar Button, making it even more convenient, to create beautiful buttons in React, where people can add events to their calendars.
This is for everybody, who wants to include a button in their React application, which enables users to easily add a specific event to their calendars. The main goal of this repository is to keep this process as easy as possible at maximum compatibility. Simply define your button configuration and everything else is automatically generated by the script. Supporting calendars at Apple, Google, Microsoft (365, Outlook, Teams), Yahoo, and generic iCal.
In terms of system support, all modern browsers (Chrome, Edge, Firefox, Safari) on Windows, Mac, Android, and iOS as well as rather restricted webview environments like the Instagram in-app browser are supported.
See add-to-calendar-button.com for a live demo and more documentation.
And remember to ⭐ star this repository in order to stay up-to-date and save it for later! 🤗
Simple and convenient integration of 1 or many buttons, optimized to be used as a React component.
Import the package using the following npm command:
npm install add-to-calendar-button-react
It requires React and React-Dom, both >=18.0.0. The installer will warn you automatically if your setup does not fit.
Import the component wherever you want to use it:
import { AddToCalendarButton } from 'add-to-calendar-button-react';
Use the componet inside your code and declare any options as props. You will get warned about any type misconfiguration.
<AddToCalendarButton
name="Test-Event"
startDate="2023-05-22"
options=['Apple','Google','Yahoo','iCal']
></AddToCalendarButton>
Find all information about the available props and how to configure specific features on the demo page at add-to-calendar-button.com/en/configuration.
Mind the difference to the web component! At this wrapper, you would use the <AddToCalendarButton>
component instead of the <add-to-calendar-button>
custom element.
Also mind that, different to the main package, with the React wrapper, you can actually declare arrays (like with the options prop) as arrays and objects (like with multi-date setups) as objects!
(Only referring to this wrapper repository and not including any patches!)
Find all changes regarding the parent package at its CHANGELOG.md.
Anyone is welcome to contribute, but mind the guidelines:
IMPORTANT NOTE: Run npm install
and npm run format
before you create any pull request!
Copyright (c) Jens Kuerschner.
Licensed under Elastic License 2.0 (ELv2).
About open-source: We consider ourselves open-source. However, we are also aware of the controversy coming with licenses like the one selected. Therefore, and contrary to many other companies and products, we no longer use the term in any marketing statements unless it is about other pieces which really are under an official OSI license.
Speaking about the license: We love it, because it is so simple. Have a look! You are basically free to do anything unless you are not offering the tool itself as a product or service; or want to remove copyright and license stuff. In doubt, simply ask and we find a way. :)
...all contributors and people involved! Thanks a lot!
Find more details at the respective parent repo section here...
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.
Security News
NVD now marks all pre-2018 CVEs as "Deferred," signaling it will no longer enrich older vulnerabilities, further eroding trust in its data.