shineout
Version:
A components library for React
25 lines (24 loc) • 629 B
TypeScript
import { ModalProps } from '../modal/modal.type';
/**
* @title Drawer
*/
export interface DrawerProps extends Omit<ModalProps, 'moveable'> {
/** *
* @en 弹出位置
* @cn Pop-up position
* @default 'right'
*/
position?: ModalProps['position'];
/**
* @en 对话框宽度, 当 position 为 'right' 或 'left' 时生效
* @cn the width of the Drawer
* @default auto
*/
width?: number | string;
/**
* @en 对话框高度, 当 position 为 'top' 或 'bottom' 时生效
* @cn the height of the Drawer
* @default auto
*/
height?: number | string;
}