List

Structured lists with headers, icons, avatars, and custom slots.

List

Basic

Display title and subtitle rows with s-list-item.

Group items under s-list-header.

Icon

Add leading icons to list rows.

Content

Place actions or custom content in the item slot.

Avatar

Use the avatar slot for profile images or initials.

Virtual list

Pass data through items and enable virtual, using #item for custom content. This example contains 10,000 variable-height records and uses the shared height-delta index. Dynamic measurement is enabled by default; for fixed rows, disable virtual-config.dynamic and set estimateSize to the actual height. Default-slot headers stay outside the viewport; handwritten children are not automatically virtualized.

API

PROPS

Property
Type
Values
Description
default
Example
More
items
[]
—
Data items; default content reads title or label and subtitle.
[]
item-key
—
Return a stable unique row key. Defaults to the index; provide it when sorting or changing items.
—
virtual
Boolean
—
Window the items array, mounting only visible and overscan rows.
false
virtual-config
—
Viewport height defaults to 320, estimateSize to 48, overscan to 5 and dynamic to true.
{}
title
String
String
List header title (s-list-header).
—
subtitle
String
String
List header subtitle.
—
icon
String
Material icon
List item or header icon.
—
color
String
primarysuccessdanger
Header color.
primary

SLOTS

Slot
Scope
Description
default
Example
More
default
—
Manual list content or a header before data rows; this content is not virtualized.
—
—
item
{ item: ; index: number }
Custom data-row content shared by normal and virtual modes.
—

EXPOSES

Method
Type
Description
default
Example
More
scrollToIndex
(index: number, align?: 'auto' | 'start' | 'center' | 'end') => void
Scroll to a data index in virtual mode.
—
measure
() => void
Remeasure the virtual viewport and mounted rows.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied