Skip to content

Contained List

Last updated 6 Nov 2026

NbContainedList is a list for a small space: a panel, a tile, an aside, a disclosure. Each row is a key, a title, one line under it and something at the end. It is the row a product otherwise writes by hand, once per screen.

Type ​

PartSetColour
List titleheading-compact--nb-c-text
Header metalabel-sm--nb-c-text-muted
Row keycode-sm, mono--nb-c-text-subtle
Row titleheading-compact--nb-c-text
Row linebody-sm--nb-c-text-muted
Trailinglabel-md--nb-c-text-muted

The title and the line truncate to one line each. A row that needs a paragraph is not a contained-list row.

Surface and lines ​

The list paints no surface of its own: it takes the plane it sits on. Rows are divided by --nb-c-border, the border of that plane, so the same list reads correctly in a raised panel, on a flat tile and on the page ground.

The header is sticky, with --nb-c-surface under it, so rows scroll beneath it rather than through it. Give the list max-height to scroll inside a tile; without it the header sticks inside whatever scrolls around it, for as long as the list is on screen.

States ​

StateTreatment
Hover--nb-c-surface-hover, on rows that act only
FocusA 2px focus ring inside the row
CurrentThe selected surface, with the selected edge as a 2px bar on the start side
Disabled55% opacity, no pointer

Sizes ​

SizeRow heightUse
sm32pxA dense aside, a list inside a disclosure
md40pxThe default: a dashboard tile, a panel
lg48pxRows with a leading avatar, a sparse page list

Phones ​

On a phone touch screen a row that acts grows to at least 44px, so every row is a full-size target. Rows sit edge to edge, so they grow rather than take an invisible hit area that would overlap the next row's. Nothing changes on a desktop, and nothing changes for a row that does not act.