@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
23 lines (22 loc) • 962 B
TypeScript
/**
* @typedef {import('../../types').PresentationalProps} CommonProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLDivElement>} HTMLDivAttributes
*
* @typedef ScrollContainerProps
* @prop {boolean} [borderless=false] - Remove border around container
*/
/**
* Constrain children (which may include both scrollable and non-scrolling
* content) to the dimensions of the immediate parent.
*
* @param {CommonProps & ScrollContainerProps & HTMLDivAttributes} props
*/
export default function ScrollContainer({ children, classes, elementRef, borderless, ...htmlAttributes }: CommonProps & ScrollContainerProps & HTMLDivAttributes): import("preact").JSX.Element;
export type CommonProps = import('../../types').PresentationalProps;
export type HTMLDivAttributes = import('preact').JSX.HTMLAttributes<HTMLDivElement>;
export type ScrollContainerProps = {
/**
* - Remove border around container
*/
borderless?: boolean | undefined;
};