0.4.5 • Published 7 months ago

@types/rmc-drawer v0.4.5

Weekly downloads
1,466
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for rmc-drawer 0.4
// Project: https://github.com/react-component/m-drawer
// Definitions by: Frithjof Winkelmann <https://github.com/Hoff97>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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.

0.4.5

7 months ago

0.4.4

7 months ago

0.4.3

8 months ago

0.4.2

3 years ago

0.4.1

5 years ago

0.4.0

6 years ago