![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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/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
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.
The npm package add-to-calendar-button-react receives a total of 9,524 weekly downloads. As such, add-to-calendar-button-react popularity was classified as popular.
We found that add-to-calendar-button-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.