# @types/tether-drop

> TypeScript definitions for tether-drop

Latest version **1.4.11** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/tether-drop
pnpm add @types/tether-drop
yarn add @types/tether-drop
bun add @types/tether-drop
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.11 |
| Published | 2023-11-07 |
| First published | 2016-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51482 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/tether-drop
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether-drop
- npm.io page: https://npm.io/package/@types/tether-drop

## Dependencies (1)

- [@types/tether](https://npm.io/package/@types/tether.md) *

## Recent versions

- 1.4.11 (latest) — 2023-11-07
- 1.4.9 (ts3.6) — 2021-07-02
- 1.4.8 (ts2.3) — 2017-11-09
- 1.4.7 (ts2.0) — 2017-08-21
- 1.4.10 — 2023-10-18
- 1.4.6 — 2017-01-20
- 1.4.5 — 2016-09-21
- 1.4.4 — 2016-09-19
- 1.4.3 — 2016-09-07
- 1.4.2 — 2016-08-25
- 1.4.1 — 2016-08-15

## README

# Installation
> `npm install --save @types/tether-drop`

# Summary
This package contains type definitions for tether-drop (https://github.hubspot.com/drop/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether-drop.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether-drop/index.d.ts)
````ts
import Tether = require("tether");

export = Drop;
export as namespace Drop;

// global Drop constructor
declare class Drop {
    constructor(options: Drop.IDropOptions);

    public content: HTMLElement;
    public tether: Tether;
    public open(): void;
    public close(): void;
    public remove(): void;
    public toggle(): void;
    public isOpened(): boolean;
    public position(): void;
    public destroy(): void;

    /*
     * Drop instances fire "open" and "close" events.
     */
    public on(event: string, handler: Function, context?: any): void;
    public once(event: string, handler: Function, context?: any): void;
    public off(event: string, handler?: Function): void;

    public static createContext(options: Drop.IDropContextOptions): typeof Drop;
}

declare namespace Drop {
    interface IDropContextOptions {
        classPrefix?: string | undefined;
        defaults?: IDropOptions | undefined;
    }

    interface IDropOptions {
        target?: Element | undefined;
        content?: Element | string | ((drop?: Drop) => string) | ((drop?: Drop) => Element) | undefined;
        position?: string | undefined;
        openOn?: string | undefined;
        classes?: string | undefined;
        constrainToWindow?: boolean | undefined;
        constrainToScrollParent?: boolean | undefined;
        remove?: boolean | undefined;
        beforeClose?: ((event: Event, drop: Drop) => boolean) | undefined;
        openDelay?: number | undefined;
        closeDelay?: number | undefined;
        focusDelay?: number | undefined;
        blurDelay?: number | undefined;
        hoverOpenDelay?: number | undefined;
        hoverCloseDelay?: number | undefined;
        tetherOptions?: Tether.ITetherOptions | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/tether](https://npmjs.com/package/@types/tether)

# Credits
These definitions were written by [Adi Dahiya](https://github.com/adidahiya).

---
_Source: https://npm.io/package/@types/tether-drop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
