blob: c27e67d4bc5b22b86bd974993923cb99cc6102e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { ComponentPropsWithoutRef, forwardRef, Ref } from "react";
import classNames from "classnames";
import "./ListContainer.css";
function _ListContainer(
{ className, children, ...otherProps }: ComponentPropsWithoutRef<"div">,
ref: Ref<HTMLDivElement>,
) {
return (
<div
ref={ref}
className={classNames("cru-list-container", className)}
{...otherProps}
>
{children}
</div>
);
}
const ListContainer = forwardRef(_ListContainer);
export default ListContainer;
|