We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b3fe2 commit 6267ae0Copy full SHA for 6267ae0
packages/react-flicking/src/react-flicking/CrossGroup.tsx
@@ -2,8 +2,18 @@
2
* Copyright (c) 2015 NAVER Corp.
3
* egjs projects are licensed under the MIT license
4
*/
5
-import React, { ReactNode } from "react";
+import React, { ReactNode, HTMLAttributes } from "react";
6
7
-const CrossGroup = React.forwardRef((props: { children?: ReactNode }, ref: React.Ref<HTMLDivElement>) => <div ref={ref}>{props.children}</div>);
+interface CrossGroupProps extends HTMLAttributes<HTMLDivElement> {
8
+ children?: ReactNode;
9
+}
10
+
11
+const CrossGroup = React.forwardRef<HTMLDivElement, CrossGroupProps>(
12
+ ({ children, ...rest }, ref) => (
13
+ <div ref={ref} {...rest}>
14
+ {children}
15
+ </div>
16
+ )
17
+);
18
19
export default CrossGroup;
0 commit comments