@types/rmc-drawer
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

Installation

npm install --save @types/rmc-drawer

Summary

This package contains type definitions for rmc-drawer (https://github.com/react-component/m-drawer).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rmc-drawer.

index.d.ts

import * as moment from "moment";
import * as React from "react";

interface DrawerProps {
    className?: string | undefined;
    prefixCls?: string | undefined;
    children?: React.ReactNode | React.ReactNode[] | undefined;
    style?: React.CSSProperties | undefined;
    sidebarStyle?: React.CSSProperties | undefined;
    contentStyle?: React.CSSProperties | undefined;
    overlayStyle?: React.CSSProperties | undefined;
    dragHandleStyle?: React.CSSProperties | undefined;
    sidebar?: React.ReactNode | undefined;
    onOpenChange?: ((open: boolean, overlay?: { overlayClicked: boolean }) => void) | undefined;
    open?: boolean | undefined;
    position?: "left" | "right" | "top" | "bottom" | undefined;
    docked?: boolean | undefined;
    transitions?: boolean | undefined;
    touch?: boolean | undefined;
    enableDragHandle?: boolean | undefined;
    dragToggleDistance?: number | undefined;
}

declare class Drawer extends React.Component<Partial<DrawerProps>> {
}

export = Drawer;

Additional Details

Credits

These definitions were written by Frithjof Winkelmann.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rmc-drawer

Weekly Downloads

12

Version

0.4.5

License

MIT

Unpacked Size

4.72 kB

Total Files

5

Last publish

Collaborators

  • types