Back to library

Scroll area

Keep long content within a bounded, keyboard-scrollable area.

Project updates

Research notes and early concepts are ready to review.

The team has shared feedback on the first draft.

Next, refine the details and prepare the final handoff.

All project resources are available to the team.

Recommended API

Property or elementTypeExample initial valueDescription
tabindexInteger0Make the scrolling region reachable by keyboard.
aria-labelTextProject updatesGive the region an accessible name.

States

StateTriggerResult
overflowingRender more content than fits vertically.The content scrolls within the bounded container.

Svelte implementation guidance

Keep overflow scrollable with pointer, touch and keyboard; give a focusable region an accessible name.

Use semantic HTML and preserve keyboard access. Adapt the example to the project conventions.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-bordercolor #dce0d8Color for outlines and dividers.
--q-radiuslength 10pxBase corner radius.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-spacelength 4pxBase unit for gaps and padding.