@chief-editor/ui
Version:
UI Component for chief editor
26 lines (25 loc) • 919 B
TypeScript
import { IRcPosition } from '@rc-hooks/dialog';
import { Property } from 'csstype';
import { CSSProperties, ReactNode } from 'react';
import { IDrawerPlacement } from './useDrawerPosition';
export interface IDrawer extends Omit<IRcPosition, 'horizontal' | 'vertical'> {
placement: IDrawerPlacement;
show?: boolean;
closeable?: boolean;
mask?: boolean;
maskClosable?: boolean;
afterClose?: () => void;
onClose?: (reason?: string) => void;
destroyOnClose?: boolean;
header?: ReactNode | (() => ReactNode);
footer?: ReactNode | (() => ReactNode);
bodyStyle?: CSSProperties;
className?: string;
width?: Property.Width<string>;
height?: Property.Height<string>;
children?: ReactNode;
style?: CSSProperties;
wrapperStyle?: CSSProperties;
}
export declare type IDrawerProps = IDrawer;
export declare function Drawer(props: IDrawerProps): JSX.Element | null;