@hypothesis/frontend-shared
Version: 
Shared components, styles and utilities for Hypothesis projects
24 lines (23 loc) • 917 B
TypeScript
/**
 * @typedef {import('../../types').PresentationalProps} CommonProps
 * @typedef {import('preact').JSX.HTMLAttributes<HTMLElement>} HTMLAttributes
 *
 * @typedef ScrollProps
 * @prop {'raised'|'flat'} [variant='raised'] - Render with scroll-hinting
 *   shadows ('raised') or without ('flat')
 */
/**
 * Render a fluid container that scrolls on overflow.
 *
 * @param {CommonProps & ScrollProps & HTMLAttributes} props
 */
export default function Scroll({ children, classes, elementRef, variant, ...htmlAttributes }: CommonProps & ScrollProps & HTMLAttributes): import("preact").JSX.Element;
export type CommonProps = import('../../types').PresentationalProps;
export type HTMLAttributes = import('preact').JSX.HTMLAttributes<HTMLElement>;
export type ScrollProps = {
    /**
     * - Render with scroll-hinting
     * shadows ('raised') or without ('flat')
     */
    variant?: "raised" | "flat" | undefined;
};