UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

24 lines (23 loc) 942 B
/** * Web ScrollView Component * */ import type { HTMLAttributes, Ref } 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'; /** * Reserves space for the scrollbar gutter, preventing layout shifts when content overflows. Maps to the CSS `scrollbar-gutter` property. * Default: `undefined` */ scrollbarGutter?: 'stable'; }; export type ScrollViewAllProps = ScrollViewProps & SpacingProps & Partial<Omit<HTMLAttributes<HTMLDivElement>, 'title'>> & { ref?: Ref<unknown>; }; declare function ScrollView(localProps: ScrollViewAllProps): import("react/jsx-runtime").JSX.Element; export default ScrollView;