@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
33 lines (31 loc) • 982 B
JavaScript
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/data/ScrollContent.js";
import classnames from 'classnames';
import { downcastRef } from '../../util/typing';
/**
* @typedef {import('../../types').PresentationalProps} CommonProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLDivElement>} HTMLDivAttributes
*/
/**
* Apply consistent padding and spacing to content within a Scroll
*
* @param {CommonProps & HTMLDivAttributes} props
*/
import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime";
export default function ScrollContent({
children,
classes,
elementRef,
...htmlAttributes
}) {
return _jsxDEV("div", { ...htmlAttributes,
ref: downcastRef(elementRef),
className: classnames('px-3 py-2', classes),
"data-component": "ScrollContent",
children: children
}, void 0, false, {
fileName: _jsxFileName,
lineNumber: 22,
columnNumber: 5
}, this);
}
//# sourceMappingURL=ScrollContent.js.map