@surveycake/rc
Version:
react component of surveycake
18 lines (17 loc) • 575 B
TypeScript
import { ReactNode } from 'react';
import { IconProps } from '../Icon';
import { BackdropProps } from '@material-ui/core/Backdrop';
export interface SlidingSideMenuProps {
open: boolean;
onClick: () => void;
onClose: () => void;
onClosed?: () => void;
duration?: number;
icon?: ReactNode;
position?: 'left' | 'right';
width?: number;
IconProps?: IconProps;
BackdropProps?: BackdropProps;
}
export interface PartialSlidingSideMenuProps extends Pick<SlidingSideMenuProps, 'open' | 'duration' | 'position' | 'width'> {
}