Scroll area

A labeled native scrolling region with keyboard focus and a visible focus ring.

Focus the region and use the arrow keys or Page Down to read the list.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add scroll-area

Usage

html
{% import "suprnova-ui/scroll-area/scroll-area.html" as scroll_area %}
{% call scroll_area::scroll_area("history", "Release history") %}<p>Release notes.</p>{% endcall %}

Examples

Horizontal scrolling

A wide native table scrolls inside the focusable region.

Open in new tab

Keyboard and accessibility

suprnova.scroll-area - a labeled region that scrolls natively (DATA-001). The region is focusable so the keyboard can scroll it, shows a visible focus ring, and never traps focus. Content keeps its document order.

API reference

scroll_area

ParameterDefaultDescription
idRequiredThe unique scrolling region id.
labelRequiredThe accessible name of the keyboard-focusable region.
axis"block"The scroll axis: block or inline.