File tree 1 file changed +9
-2
lines changed
packages/ra-ui-materialui/src/layout
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,26 @@ import useScrollTrigger from '@mui/material/useScrollTrigger';
4
4
import Slide from '@mui/material/Slide' ;
5
5
6
6
export const HideOnScroll = ( props : HideOnScrollProps ) => {
7
- const { children } = props ;
7
+ const { children, className } = props ;
8
8
const trigger = useScrollTrigger ( ) ;
9
9
return (
10
- < Slide appear = { false } direction = "down" in = { ! trigger } >
10
+ < Slide
11
+ appear = { false }
12
+ direction = "down"
13
+ in = { ! trigger }
14
+ className = { className }
15
+ >
11
16
{ children }
12
17
</ Slide >
13
18
) ;
14
19
} ;
15
20
16
21
HideOnScroll . propTypes = {
17
22
children : PropTypes . node . isRequired ,
23
+ className : PropTypes . string ,
18
24
} ;
19
25
20
26
export interface HideOnScrollProps {
21
27
children : React . ReactElement ;
28
+ className ?: string ;
22
29
}
You can’t perform that action at this time.
0 commit comments