File tree 1 file changed +19
-18
lines changed
packages/next/src/client/components/react-dev-overlay/ui/components/fader
1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
- import type { CSSProperties } from 'react'
1
+ import { type CSSProperties , type Ref , forwardRef } from 'react'
2
2
3
- export function Fader ( {
4
- stop,
5
- blur,
6
- side,
7
- style,
8
- height,
9
- ref,
10
- } : {
11
- stop ?: string
12
- blur ?: string
13
- height ?: number
14
- side : 'top' | 'bottom' | 'left' | 'right'
15
- className ?: string
16
- style ?: CSSProperties
17
- ref ?: React . Ref < HTMLDivElement >
18
- } ) {
3
+ export const Fader = forwardRef ( function Fader (
4
+ {
5
+ stop,
6
+ blur,
7
+ side,
8
+ style,
9
+ height,
10
+ } : {
11
+ stop ?: string
12
+ blur ?: string
13
+ height ?: number
14
+ side : 'top' | 'bottom' | 'left' | 'right'
15
+ className ?: string
16
+ style ?: CSSProperties
17
+ } ,
18
+ ref : Ref < HTMLDivElement >
19
+ ) {
19
20
return (
20
21
< div
21
22
ref = { ref }
@@ -33,7 +34,7 @@ export function Fader({
33
34
}
34
35
/>
35
36
)
36
- }
37
+ } )
37
38
38
39
export const FADER_STYLES = `
39
40
.nextjs-scroll-fader {
You can’t perform that action at this time.
0 commit comments