0.1.3 • Published 6 months ago

@types/react-add-to-calendar v0.1.3

Weekly downloads
1,854
License
MIT
Repository
github
Last release
6 months ago

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.

index.d.ts

// Type definitions for react-add-to-calendar 0.1
// Project: https://github.com/jasonsalzman/react-add-to-calendar
// Definitions by: Konstantin Lebedev <https://github.com/koss-lebedev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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: Thu, 08 Jul 2021 20:20:22 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Konstantin Lebedev.