Scroll Panel

A bounded container with sticky header and footer slots that scrolls its body content when it overflows.

Props

height
string
Sets the height of the panel. Any valid CSS height value (e.g. "400px", "100%", "100vh"). Defaults to "100%". The parent element must establish a height context for "100%" to work.
testId
string
Sets a data-testid attribute for automated testing.
height
string
Sets the height of the panel. Any valid CSS height value (e.g. "400px", "100%", "100vh"). Defaults to "100%". The parent element must establish a height context for "100%" to work.
testId
string
Sets the data-testid attribute for automated testing.
height
string
Sets the height of the container. Any valid CSS height value (e.g. "400px", "100%", "100vh"). Defaults to "100%". The parent element must establish a height context for "100%" to work. The value is applied directly to the host element's style.
Defaults to 100%.
testid
string
Sets a data-testid attribute for automated testing.

ReactNode

footer
ReactNode
Content rendered in the sticky footer region.
header
ReactNode
Content rendered in the sticky header region.
footer
TemplateRef
Content rendered in the sticky footer region.
header
TemplateRef
Content rendered in the sticky header region.
footer
slot
Content rendered in the sticky footer region.
header
slot
Content rendered in the sticky header region.

Usage

Scroll panel keeps a header and footer in place while the content between them scrolls.

You usually will not add scroll panel yourself. It works inside several other components, giving each one the same scrolling and the same soft shadow when there is more to see:

You can also use it on its own when you need a box whose content scrolls while a header or footer stays in place.

All GoA Design System components are built to meet WCAG 2.2 AA standards. The following guidelines provide additional context for accessible implementation.

No accessibility-specific guidelines have been documented for this component yet.

View old component docs