@lunit/oui
Version:
Lunit Oncology UI components
15 lines (14 loc) • 670 B
TypeScript
import type { DrawerProps as MuiDrawerProps } from '@mui/material';
export interface BaseDrawerProps extends MuiDrawerProps {
/** Whether the drawer is expanded. When false, collapses to `closedWidth`. */
open?: boolean;
/** Whether to use the wider expanded width (`wideWidth`) instead of `openWidth`. */
wide?: boolean;
/** Width when collapsed (`open=false`). Defaults to 52px. */
closedWidth?: number | string;
/** Width when expanded. Defaults to 240px. */
openWidth?: number | string;
/** Width when expanded and `wide` is set. Defaults to 280px. */
wideWidth?: number | string;
}
export type DrawerProps = BaseDrawerProps;