@@ -9,6 +9,7 @@ import DrawerContext from './context';
9
9
import type { DrawerPanelEvents } from './DrawerPanel' ;
10
10
import DrawerPanel from './DrawerPanel' ;
11
11
import { parseWidthHeight } from './util' ;
12
+ import type { DrawerClassNames } from './inter' ;
12
13
13
14
const sentinelStyle : React . CSSProperties = {
14
15
width : 0 ,
@@ -63,6 +64,9 @@ export interface DrawerPopupProps extends DrawerPanelEvents {
63
64
onClose ?: (
64
65
event : React . MouseEvent < HTMLElement > | React . KeyboardEvent < HTMLElement > ,
65
66
) => void ;
67
+
68
+ // classNames
69
+ classNames ?: DrawerClassNames ;
66
70
}
67
71
68
72
function DrawerPopup ( props : DrawerPopupProps , ref : React . Ref < HTMLDivElement > ) {
@@ -76,6 +80,8 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) {
76
80
autoFocus,
77
81
keyboard,
78
82
83
+ // classNames
84
+ classNames : drawerClassNames ,
79
85
// Root
80
86
rootClassName,
81
87
rootStyle,
@@ -216,6 +222,7 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) {
216
222
className = { classNames (
217
223
`${ prefixCls } -mask` ,
218
224
motionMaskClassName ,
225
+ drawerClassNames ?. mask ,
219
226
maskClassName ,
220
227
) }
221
228
style = { {
@@ -285,6 +292,7 @@ function DrawerPopup(props: DrawerPopupProps, ref: React.Ref<HTMLDivElement>) {
285
292
< div
286
293
className = { classNames (
287
294
`${ prefixCls } -content-wrapper` ,
295
+ drawerClassNames ?. wrapper ,
288
296
motionClassName ,
289
297
) }
290
298
style = { {
0 commit comments