DefinitelyTyped/types/react-sidebar/index.d.ts
Forbes Lindesay 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00

36 lines
1.0 KiB
TypeScript

// Type definitions for react-sidebar 2.2
// Project: https://github.com/balloob/react-sidebar#readme
// Definitions by: Jeroen Vervaeke <https://github.com/jeroenvervaeke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
import { Component } from "react";
export interface SidebarProps {
contentClassName?: string;
docked?: boolean;
dragToggleDistance?: number;
onSetOpen?(): void;
open?: boolean;
overlayClassName?: string;
pullRight?: boolean;
rootClassName?: string;
shadow?: boolean;
sidebar?: any;
sidebarClassName?: string;
styles?: SidebarStyles;
transitions?: boolean;
touch?: boolean;
touchHandleWidth?: number;
}
export interface SidebarStyles {
content?: Partial<CSSStyleDeclaration>;
dragHandle?: Partial<CSSStyleDeclaration>;
overlay?: Partial<CSSStyleDeclaration>;
root?: Partial<CSSStyleDeclaration>;
sidebar?: Partial<CSSStyleDeclaration>;
}
export default class Sidebar extends Component<SidebarProps> {}