rc-drawer
Version:
drawer component for react
13 lines (12 loc) • 391 B
TypeScript
import * as React from 'react';
export interface DrawerContextProps {
pushDistance?: number | string;
push: VoidFunction;
pull: VoidFunction;
}
declare const DrawerContext: React.Context<DrawerContextProps>;
export interface RefContextProps {
panel?: React.Ref<HTMLDivElement>;
}
export declare const RefContext: React.Context<RefContextProps>;
export default DrawerContext;