List
Displays a collection of items in a vertical list layout.
Default
Simple text items with dividers.
html
- General
- Privacy
- Notifications
- Appearance
- Language
<ul class="vt-list">
<li class="vt-list-item"><span class="vt-list-item-title">General</span></li>
<li class="vt-list-item"><span class="vt-list-item-title">Privacy</span></li>
<li class="vt-list-item"><span class="vt-list-item-title">Notifications</span></li>
<li class="vt-list-item"><span class="vt-list-item-title">Appearance</span></li>
<li class="vt-list-item"><span class="vt-list-item-title">Language</span></li>
</ul>
With Description
Title and subtitle for each list item.
html
-
Display Name Your name as shown to other users
-
Email Address Used for login and notifications
-
Password Last changed 3 months ago
-
Two-Factor Authentication Add an extra layer of security
<ul class="vt-list">
<li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">Display Name</span>
<span class="vt-list-item-description">Your name as shown to other users</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">Email Address</span>
<span class="vt-list-item-description">Used for login and notifications</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">Password</span>
<span class="vt-list-item-description">Last changed 3 months ago</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-list-item-content">
<span class="vt-list-item-title">Two-Factor Authentication</span>
<span class="vt-list-item-description">Add an extra layer of security</span>
</div>
</li>
</ul>
With Leading Icon/Avatar
Avatar or icon before the text content.
html
-
AAlice Smith alice.smith@example.com
-
BBob Johnson bob.johnson@example.com
-
CCarol Williams carol.williams@example.com
-
DDavid Miller david.miller@example.com
<ul class="vt-list">
<li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">A</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Alice Smith</span>
<span class="vt-list-item-description">alice.smith@example.com</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">B</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Bob Johnson</span>
<span class="vt-list-item-description">bob.johnson@example.com</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">C</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">Carol Williams</span>
<span class="vt-list-item-description">carol.williams@example.com</span>
</div>
</li>
<li class="vt-list-item">
<div class="vt-avatar vt-avatar-md">D</div>
<div class="vt-list-item-content">
<span class="vt-list-item-title">David Miller</span>
<span class="vt-list-item-description">david.miller@example.com</span>
</div>
</li>
</ul>
With Trailing
Items with trailing chevrons or badges.
html
- Notifications 12
- Storage
- Battery
- Wi-Fi
<ul class="vt-list">
<li class="vt-list-item">
<span class="vt-list-item-title">Notifications</span>
<span class="vt-count-badge">12</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item">
<span class="vt-list-item-title">Storage</span>
<span class="vt-list-item-meta">24.5 GB</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item">
<span class="vt-list-item-title">Battery</span>
<span class="vt-list-item-meta">87%</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item">
<span class="vt-list-item-title">Wi-Fi</span>
<span class="vt-list-item-meta">Connected</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
</ul>
Grouped
Sections with headings, like iOS settings. The heading is vt-section-label.
html
Account
- Profile
- Security
- Notifications
Preferences
- Appearance
- Language
Danger Zone
- Sign Out
- Delete Account
<div class="vt-space-y-6">
<div class="vt-list-section">
<h3 class="vt-section-label">Account</h3>
<ul class="vt-list">
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><circle cx="12" cy="6.99988" r="4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle>
</svg>
<span class="vt-list-item-title">Profile</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="currentColor" stroke-width="1.5"></path><path d="M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Security</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Notifications</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
</ul>
</div>
<div class="vt-list-section">
<h3 class="vt-section-label">Preferences</h3>
<ul class="vt-list">
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M7.51462 8.95508L4.95245 11.5499C3.64347 12.8756 2.98898 13.5384 2.99156 14.358C2.99414 15.1776 3.6528 15.8363 4.97011 17.1537L6.83693 19.0206C8.15423 20.338 8.81289 20.9967 9.63242 20.9993C10.4519 21.0019 11.1147 20.3474 12.4403 19.0383L15.035 16.4759" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16.9434 3.77829C17.8285 2.78049 19.3712 2.73439 20.3143 3.67758C21.2575 4.62078 21.2113 6.16362 20.2136 7.04881L17.4641 9.48805C16.9296 9.96225 16.6623 10.1994 16.5923 10.5129C16.5806 10.565 16.5732 10.618 16.5701 10.6712C16.5512 10.992 16.743 11.2934 17.1267 11.8963L17.5847 12.6161C17.8696 13.0638 18.012 13.2877 18.0887 13.5118C18.2799 14.071 18.2124 14.6864 17.9044 15.1908C17.781 15.3929 17.5933 15.5805 17.2181 15.9558C16.9888 16.1851 16.8742 16.2998 16.7539 16.367C16.4526 16.5356 16.0853 16.5356 15.784 16.367C15.6637 16.2998 15.5491 16.1851 15.3198 15.9558L8.03689 8.6723C7.80763 8.44302 7.693 8.32838 7.62576 8.20813C7.45724 7.90675 7.45724 7.53948 7.62576 7.23809C7.693 7.11784 7.80763 7.0032 8.03689 6.77392C8.41214 6.39864 8.59976 6.211 8.80184 6.08758C9.30626 5.77952 9.92161 5.71197 10.4808 5.90326C10.7049 5.9799 10.9287 6.12237 11.3765 6.4073L12.0962 6.86535C12.699 7.24897 13.0003 7.44078 13.3211 7.42194C13.3743 7.41881 13.4273 7.41139 13.4794 7.39976C13.7929 7.32972 14.03 7.06247 14.5042 6.52796L16.9434 3.77829Z" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7.63999 19.3295L9.13053 17.8389" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M4.65952 16.3477L7.14375 13.8633" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Appearance</span>
<span class="vt-list-item-meta">System</span>
</li>
<li class="vt-list-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-icon" aria-hidden="true">
<path d="M3.49744 5H7.99744M7.99744 5H13.4974M7.99744 5V3.5M4.99744 13.5C7.49744 11.5 10.4974 7.5 10.9974 5M6.49744 7.5C6.99744 9 8.99744 11.5 9.99744 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.99744 13.5C7.49744 11.5 10.4974 7.5 10.9974 5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11.4974 20.5005L14.1591 14.2898C14.9451 12.456 15.338 11.5391 15.9974 11.5391C16.6568 11.5391 17.0498 12.456 17.8357 14.2898L20.4974 20.5005" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13.4974 16.5H18.4974" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-list-item-title">Language</span>
<span class="vt-list-item-meta">English</span>
</li>
</ul>
</div>
<div class="vt-list-section">
<h3 class="vt-section-label">Danger Zone</h3>
<ul class="vt-list">
<li class="vt-list-item vt-list-item-danger"><span class="vt-list-item-title">Sign Out</span></li>
<li class="vt-list-item vt-list-item-danger"><span class="vt-list-item-title">Delete Account</span></li>
</ul>
</div>
</div>
Current Row
The row the user is on takes aria-current: a neutral wash (--vt-state-selected) that does not follow the brand color; the chevron stays.
html
<nav class="vt-list" aria-label="Lessons">
<a href="#current-row" class="vt-list-item"><span class="vt-list-item-title">1. Design tokens</span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></a>
<a href="#current-row" class="vt-list-item" aria-current="step"><span class="vt-list-item-title">2. Color scales</span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></a>
<a href="#current-row" class="vt-list-item"><span class="vt-list-item-title">3. Typography</span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-chevron" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></a>
</nav>
Interactive
Selectable items with checkmarks.
html
- System Default
- Light Mode
- Dark Mode
- High Contrast
<ul class="vt-list" role="listbox" aria-label="Theme">
<li class="vt-list-item" role="option" aria-selected="true" onclick="this.parentElement.querySelectorAll('.vt-list-item').forEach(function(r){r.setAttribute('aria-selected','false')}); this.setAttribute('aria-selected','true')">
<span class="vt-list-item-title">System Default</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-check" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item" role="option" aria-selected="false" onclick="this.parentElement.querySelectorAll('.vt-list-item').forEach(function(r){r.setAttribute('aria-selected','false')}); this.setAttribute('aria-selected','true')">
<span class="vt-list-item-title">Light Mode</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-check" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item" role="option" aria-selected="false" onclick="this.parentElement.querySelectorAll('.vt-list-item').forEach(function(r){r.setAttribute('aria-selected','false')}); this.setAttribute('aria-selected','true')">
<span class="vt-list-item-title">Dark Mode</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-check" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
<li class="vt-list-item" role="option" aria-selected="false" onclick="this.parentElement.querySelectorAll('.vt-list-item').forEach(function(r){r.setAttribute('aria-selected','false')}); this.setAttribute('aria-selected','true')">
<span class="vt-list-item-title">High Contrast</span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-list-item-check" aria-hidden="true">
<path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
</li>
</ul>
Guidelines
-
Display Name Shown to other users
-
Email Address Used for login
Display Name
Shown to other users
Email Address
Used for login
- System Default
- Dark Mode
- AliceAdminActiveJan 4
Anatomy
div.vt-list-section ← Optional group with a heading
├── h3.vt-section-label ← Heading
└── ul.vt-list ← Container
└── li.vt-list-item ← Row
├── svg.vt-list-item-icon ← Leading icon (or div.vt-avatar)
├── div.vt-list-item-content
│ ├── span.vt-list-item-title
│ └── span.vt-list-item-description
├── span.vt-list-item-meta ← Trailing value
├── span.vt-count-badge ← Trailing count
├── svg.vt-list-item-chevron ← Trailing chevron
└── svg.vt-list-item-check ← Check of a selected row
API Reference
| Class | Type | Description |
|---|---|---|
vt-list |
Base | Bordered, rounded container (ul); rows are divided by a hairline |
vt-list-item |
Part | One row (li) — 12/16px padding, 12px between its parts, highlights on hover |
vt-list-item-content |
Part | Title and description stacked; takes the rest of the row |
vt-list-item-title |
Part | Row title — Label/MD; takes the rest of the row when used without vt-list-item-content |
vt-list-item-description |
Part | Secondary line — Body/SM, muted |
vt-list-item-icon |
Part | Leading icon, 20px, muted. What leads a row is one slot (Leading in Figma): this icon, an avatar, an icon badge or nothing |
vt-avatarvt-avatar-md |
Part | Leading avatar, in the same Leading slot |
vt-list-item-meta |
Part | Trailing value (24.5 GB, English) — Body/SM, muted |
vt-count-badge |
Part | Trailing count |
vt-list-item-chevron |
Part | Trailing chevron, 16px, muted |
vt-list-item-check |
Part | Check of a selectable row, 16px, brand color; shown only when the row is selected |
vt-list-itemvt-active |
State | The current row (or aria-current="page" / "step") — the neutral --vt-state-selected wash, the title and a leading icon in foreground-primary, whatever the brand color; the chevron stays |
vt-list-itemvt-selected |
State | Selected row (or aria-selected="true") — shows the check in place of the chevron |
vt-list-item-danger |
Modifier | Destructive row — the title in the error color |
vt-list-section |
Part | A heading (vt-section-label) above a list, 6px apart |
vt-list-section>vt-section-label |
Context | The heading, 16px in from the sides, in line with the rows — the Overline text style in the muted color (Typography) |
Accessibility
| Feature | Details |
|---|---|
| Semantics | vt-list is a ul and each vt-list-item an li, so screen readers announce the length and position (e.g. "item 2 of 5") |
| Selection | A selectable list is role="listbox" with role="option" rows; aria-selected="true" marks the chosen row and shows its check |
| Interactive | A row that navigates holds an anchor or a button (or is one) — not a click handler on a bare li |
| Description | Complex rows benefit from an aria-label summarizing the content |