Installation
npm install --save @types/react-add-to-calendar
Summary
This package contains type definitions for react-add-to-calendar (https://github.com/jasonsalzman/react-add-to-calendar).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-add-to-calendar.
import * as React from "react";
export interface AddToCalendarEvent {
title?: string | undefined;
description?: string | undefined;
location?: string | undefined;
startTime?: string | Date | undefined;
endTime?: string | Date | undefined;
}
export interface AddToCalendarProps {
buttonClassClosed?: string | undefined;
buttonClassOpen?: string | undefined;
buttonLabel?: string | undefined;
buttonTemplate?: any;
buttonIconClass?: string | undefined;
useFontAwesomeIcons?: boolean | undefined;
buttonWrapperClass?: string | undefined;
displayItemIcons?: boolean | undefined;
optionsOpen?: boolean | undefined;
dropdownClass?: string | undefined;
event: AddToCalendarEvent;
listItems?: any[] | undefined;
rootClass?: string | undefined;
}
declare const ReactAddToCalendar: React.ComponentClass<AddToCalendarProps>;
export default ReactAddToCalendar;
Additional Details
- Last updated: Wed, 18 Oct 2023 11:45:05 GMT
- Dependencies: @types/react
Credits
These definitions were written by Konstantin Lebedev.