ScrollArea API
import { ScrollArea } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
autoHide | boolean | |
onReachEnd | () => void | |
onReachStart | () => void | |
onScrollChange | (detail: { scrollTop: number; scrollLeft: number; maxScrollTop: number; maxScrollLeft: number; progressY: number; progressX: number; }) => void | |
orientation | 'vertical' | 'horizontal' | 'both' | |
shadows | boolean | |
size | 'sm' | 'md' | 'lg' | |
tone | 'neutral' | 'brand' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'soft' | 'inset' | 'contrast' | 'minimal' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-scroll-area>
ScrollArea renders the ui-scroll-area custom element from @editora/ui-core, which can also be used without React.
Attributes: auto-hide, headless, orientation, shadows, size, tone, variant
Events: reach-end, reach-end-x, reach-start, reach-start-x, scroll