@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
23 lines (22 loc) • 845 B
TypeScript
/**
* @typedef {import('../../types').CompositeProps} CompositeProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLElement>} HTMLAttributes
*
* @typedef ScrollBoxProps
* @prop {boolean} [borderless=false] - Turn off borders on outer container
*/
/**
* Render an opinionated composition of Scroll components, making `children`
* scrollable.
*
* @param {CompositeProps & ScrollBoxProps} props
*/
export default function ScrollBox({ children, elementRef, borderless, ...htmlAttributes }: CompositeProps & ScrollBoxProps): import("preact").JSX.Element;
export type CompositeProps = import('../../types').CompositeProps;
export type HTMLAttributes = import('preact').JSX.HTMLAttributes<HTMLElement>;
export type ScrollBoxProps = {
/**
* - Turn off borders on outer container
*/
borderless?: boolean | undefined;
};