UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

24 lines (23 loc) 1.07 kB
/** * Web ScrollView Component * */ import React from 'react'; import type { SpacingProps } from '../../shared/types'; export type ScrollViewProps = { /** * To make the content accessible to keyboard navigation. Use `true` or `auto`. Auto will detect if a scrollbar is visible and make the ScrollView accessible for keyboard navigation. * Default: false */ interactive?: boolean | 'auto'; }; export type ScrollViewAllProps = ScrollViewProps & SpacingProps & Partial<Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>> & { innerRef?: React.ForwardedRef<unknown>; }; declare const ScrollViewWithRef: React.ForwardRefExoticComponent<ScrollViewProps & import("../../shared/types").SpacingElementProps & { space?: import("../../shared/types").SpaceTypeAll; innerSpace?: import("../../shared/types").SpaceTypeAll | import("../../shared/types").SpaceTypeMedia; } & Partial<Omit<React.HTMLAttributes<HTMLDivElement>, "title">> & { innerRef?: React.ForwardedRef<unknown>; } & React.RefAttributes<unknown>>; export default ScrollViewWithRef;