DefinitelyTyped/types/react-hamburger-menu/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01:00

59 lines
1.3 KiB
TypeScript

// Type definitions for react-hamburger-menu 0.0
// Project: https://github.com/cameronbourke/react-hamburger-menu
// Definitions by: Grzegorz Kielak <https://github.com/grzesie2k>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export default HamburgerMenu;
declare class HamburgerMenu extends React.PureComponent<HamburgerMenuProps> {
}
export interface HamburgerMenuProps {
/**
* Determines whether the menu is a hamburger or cross icon
*/
isOpen: boolean;
/**
* The width of the icon
* @default 36
*/
width?: number;
/**
* The height of the icon
* @default 30
*/
height?: number;
/**
* The stroke width of the lines
* @default 2
*/
strokeWidth?: number;
/**
* The rotation of the icon, eg {45} would be 45deg
* @default 0
*/
rotate?: number;
/**
* The border radius of the lines
* @default 0
*/
borderRadius?: number;
/**
* The color of both icons
* @default #000
*/
color: string;
/**
* The length of time it takes for the icon transitions to complete.
* @default 0.4
*/
animationDuration?: number;
/**
* Will be invoked when the component is clicked
*/
menuClicked(): void;
}