import React from "react"; import styles from "./ScrollPane.module.scss"; import { utils } from "../../main"; interface Props { /** * Scroll pane contents */ children: JSX.Element | JSX.Element[]; /** * CSS width */ width?: string; /** * Max CSS width */ maxWidth?: string; /** * Min CSS width */ minWidth?: string; /** * CSS height */ height?: string; /** * Max CSS height */ maxHeight?: string; /** * Min CSS height */ minHeight?: string; } export interface RefInstance {} const ScrollPane = React.forwardRef((props, ref) => { props = utils.mergeObject({ children: <>, width: "100%", height: "100px", maxWidth: "none", minWidth: "none", maxHeight: "none", minHeight: "none" }, props); return (
{props.children}
); }); export default ScrollPane;