Scroll area
A box that scrolls its content with the native scrolling and a thin themed scrollbar (Mantine's ScrollArea). Edge shadows tell there is more; ray-reach-end fires at the end (load the next page).
An endless list: ray-reach-end loads the next page
Horizontal, scrollbar on hover
DashboardSidebar, tables, charts
ChatThreads and presence
StoreCatalog, cart, checkout
BlogPosts, tags, RSS
DocsSearch and a sidebar
Mobile appApp shell and bottom nav
Status pageUptime and incidents
max-height: grows, then scrolls
- release-notes.md12 KB
- screenshot-dark.png1.8 MB
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-scroll-area> · RayScrollArea
Give it a size: height, max-height, CSS, or a flex/grid parent. The scrolling box is focusable (keyboard scrolling); name it with label when it holds a region of its own.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
height | height | string | Height (CSS length). | |
maxHeight | max-height | string | Maximum height: it grows with its content up to this, then scrolls. | |
orientation | orientation reflects | vertical | horizontal | both | vertical | Which ways it scrolls. |
type | type reflects | auto | hover | never | auto | The scrollbar: auto (when it scrolls), hover (while hovered or scrolling), never (still scrolls). |
noShadows | no-shadows reflects | boolean | No edge shadows. | |
threshold | threshold | number | 48 | Distance from the end (px) at which ray-reach-end fires. |
label | label | string | Accessible name: makes the scrolling box a named region. |
| Event | Description |
|---|---|
ray-reach-end | The end came within threshold (once per arrival): the bottom, or the right when horizontal (the left right to left). |
| Slot | Description |
|---|---|
| (default) | The content. |
| Part | Description |
|---|---|
viewport | The scrolling box. |
shadow | The edge shadows. |